ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

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 - https://dev.mission-bbq.com/images/delivery-location-field.jpg

My error message - https://dev.mission-bbq.com/images/error-message.png
Max_admin 11 Oct, 2017
Hi,

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

Best regrads
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
Max_admin 11 Oct, 2017
Hi,

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

Best regrads
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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: https://dev.mission-bbq.com/images/delivery-type-settings.jpg

Delivery Location: https://dev.mission-bbq.com/images/delivery-location-settings.jpg
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...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
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.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com