required fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • blad3runn69
    New Member
    • Jul 2007
    • 59

    required fields

    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
    Recognized Expert Contributor
    • Sep 2008
    • 489

    #2
    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.

    Comment

    • blad3runn69
      New Member
      • Jul 2007
      • 59

      #3
      heh genius, thank you 4 the lateral thinking :D

      Comment

      • DonRayner
        Recognized Expert Contributor
        • Sep 2008
        • 489

        #4
        Glad I could help. :)

        Comment

        Working...