Connecting Tech Pros Worldwide Forums | Help | Site Map

required fields

Member
 
Join Date: Jul 2007
Posts: 59
#1: Nov 18 '08
check box + date text box
tick the check box and checkbox click event fires: date text box set focus

date text box exit event prevents user from leaving field blank, however event traps focus. how to programatically allow user to untick checkbox? or am I going about this all wrong? Thank you for your help it is always greatly appreciated.

DonRayner's Avatar
Expert
 
Join Date: Sep 2008
Location: Canada
Posts: 494
#2: Nov 18 '08

re: required fields


Quote:

Originally Posted by blad3runn69

check box + date text box
tick the check box and checkbox click event fires: date text box set focus

date text box exit event prevents user from leaving field blank, however event traps focus. how to programatically allow user to untick checkbox? or am I going about this all wrong? Thank you for your help it is always greatly appreciated.

Instead of preventing the user from leaving the blank date field, why not use the exit event to uncheck the checkbox if the date field is empty. It would also be a good idea to popup a msgbox letting the user know why the checkbox was unchecked.
Member
 
Join Date: Jul 2007
Posts: 59
#3: Nov 18 '08

re: required fields


heh genius, thank you 4 the lateral thinking :D
DonRayner's Avatar
Expert
 
Join Date: Sep 2008
Location: Canada
Posts: 494
#4: Nov 18 '08

re: required fields


Glad I could help. :)
Reply