Question about

sjkelley 09 Oct, 2017
Hi,

I'm using ChronoForms 6.0.11 on a site I have under development at http://dev.mission-bbq.com/get-estimate

I have a select field called "Delivery Type" that has two options: "Pickup" and "Delivery".

When the user picks "Delivery" a "Delivery Location" text field (required) is shown. If they select "Pickup" then the "Delivery Location" field is hidden.

That part works fine, but even if the required field isn't shown I'm getting a "required" error when I try to submit the form.

What am I doing wrong?

My settings - Question about  image 1

My error message - Question about  image 2
Max_admin 11 Oct, 2017
Hi,

You should use "Enable validation" and "Disable validation" instead of enable/disable!

Best regrads
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin 11 Oct, 2017
Hi,

You should use "Enable validation" and "Disable validation" instead of enable/disable!

Best regrads
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sjkelley 11 Oct, 2017
Max,

Thanks for your response. Unfortunately what you suggested didn't work. If I don't have the "Enable" event added then the field displays ("Show") but it is grayed out.

When I do have the "Enable" event added then the "Delivery Location" field is correctly shown or hidden (when "Delivery Type" selection is "Delivery" or "Pickup" respectively) -- however if the user selects "Pickup" then I get a required/validation error for the Delivery Location field.

Essentially, even though the Delivery Location field is hidden, the form still considers it required and the user can't submit the form.

You can see for yourself if you try the form at https://dev.mission-bbq.com/index.php?option=com_chronoforms6&chronoform=catering-form

You can see the relevant field settings in the screenshots attached below.

Delivery Type: Question about  image 3

Delivery Location: Question about  image 4
Max_admin 13 Oct, 2017
But it looks like you have the field "Delivery location" disabled by default ? just don't make it disabled and set the event to show/hide it

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
sjkelley 13 Oct, 2017
Max,

I tried that and that doesn't work either. I've made two short videos to better show you what I'm seeing:

If I only add show/hide events to "Delivery Type" then the "Delivery Location" field shows up as disabled.
See - https://drive.google.com/file/d/0B_d5GCfcxWJGMV9Xa2x3RWdTaTg/view

If I also add enable/disable events to "Delivery Type" then the "Delivery Location" field is shown or hidden correctly. However when it is hidden it is still running its validation. And so when the user selects "Pickup" they get the required validation error message from the "Delivery Location" field and can't submit the form.
See - https://drive.google.com/file/d/0B_d5GCfcxWJGUjgxQTFfR1VZUFE/view

I ran this by Greyhead and he seemed to think it was a bug in CFv6.
This topic is locked and no more replies can be posted.