required field ONLY if not hidden with Ajax

rodsdesign 30 Sep, 2010
Hi guys,

I have a form that uses Ajax to hide fields based on clicks. Specifically - if a user clicks that they want a follow-up - the email field appears. I need this field to be required ... but only if they click to request information. Otherwise - it can be blank.

If I require the email field in the form settings, then the form can't be submitted (there's other information) because the email field is "required" even though it's hidden.

If I'm making sense - is there a solution?
thanks
GreyHead 01 Oct, 2010
Hi rodsdesign,

I think so but it's a bit tricky. LiveValidation has a feature that allows you to disable validations . . . but so far I haven’t got it to work with the LiveValidations that ChronoForms sets up. It will work if you use a Custom LiveValidation.

Alternatively, you could us a separate script snippet to disable the submit button if the check box is visible but not checked.

Bob
This topic is locked and no more replies can be posted.