Forum Post: Hidden Required Field

Status
Not open for further replies.
A

awbranch

Guest
Hi, I have a field that is conditionally hidden based on a picklist selection using rbf_showOrHideSection. When its visible, I want it to be required, but when hidden I don't want it to be. Problem is, right now when hidden, if left blank the user will get an error message that they can't see. Ideally there would be a function like rbf_setFieldRequired(fieldName, required) that could be turned on or off. One possibility that may work would be filling it in with some dummy value when hidden, but because this field is an email address and it must be unique, that's overly complicated. I'd have to come up with some globally unique dummy email address to place in the field.

Continue reading...
 
Status
Not open for further replies.
Top