PC SOFT

GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEVWEBDEV e WINDEV Mobile

Inicio → WEBDEV 2024 → How do you Cancel on a Form with required fields...
How do you Cancel on a Form with required fields...
Iniciado por Kevin Erskine, abr., 20 2009 11:33 AM - 2 respostas
Publicado em abril, 20 2009 - 11:33 AM
Dynamic website... WebDev v12

I have a form and if I edit some fields, blank out some required fields and
then hit the Cancel button, it pops up messages about fields being required.

Is there a way to have required fields on a screen and still have the cancel
button work?

--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)
Publicado em abril, 23 2009 - 1:37 AM
Hi Kevin,

Don't use required fields but validate them by code in a page button, let's say 'Register' ?
You can do this in the button navigator code section and give messages if they are empty and then do a 'ReturnToCapture()' to the faulty field.

Christian

Kevin Erskine a écrit dans le message de news <49ebd8d7@news.pcsoft.fr> :
Dynamic website... WebDev v12

I have a form and if I edit some fields, blank out some required fields and
then hit the Cancel button, it pops up messages about fields being required.

Is there a way to have required fields on a screen and still have the cancel
button work?

--
Kevin Erskine
Software By Ragazzi
www.Software-By-Ragazzi.com
Alameda, CA (USA)
Publicado em abril, 23 2009 - 9:40 AM
OK - I was figuring this is what I would have to do, but was trying to use
the designer features.

It is ashame to have to code all this -- I think Cancel should "Cancel"

Thanks
Kevin

"Christian Potvin" <cpotvin@beaulieucanada.ca> wrote in message
news:c578ceb6a19cd76a6be82f055d4c9c5d@news.pcsoft...



Hi Kevin,

Don't use required fields but validate them by code in a page button,
let's say 'Register' ?
You can do this in the button navigator code section and give messages if
they are empty and then do a 'ReturnToCapture()' to the faulty field.

Christian