jforget1
asked on
Blocking data entry
Have a field which asks the user if they are a registered representative. Have another field which asks for their agent_ID, I know how to force the input if the response to the initial registered representative question is yes, but how do I block the input of the field if the response is No. Can entry to a field be prohibited with explanation as to why they are not allowed to enter a value.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I don't know why that did not occur to me, started thinking specifically of the validation area and not of just using a good old hide/when.
Another way is via the Entering event or the similar onFocus event. You can put in code there to check the controlling field, and if it is not set, then remove focus from the field. The user can try to enter it but will never succeed.