I've written a plugin that extends Parsely and adds conditional logic. However I've found an error in Parsely when toggling required fields. Take a look at the url below and follow the steps below to reproduce. Note that I've also recorded a video that shows the error and also the console output which confirms the issue.
Click "remove validation"
6 Click submit again, this time the validation is still applied even though it should no longer be active on the field.
The only way to remove the validation is to do the following:
Check off an option in the checkboxes
Click remove validation
It's now fixed.
From what I can tell by checking off an option on the checklist it causes the removeItem method to run twice. Since the first time the hash comes up with a random string, it then proceeds to the second item in the checklist array.
This happens only with lists of checkboxes or radio buttons.
This problem is critical to the plugin I've developed since it loops through the form when the page loads, disabling all required fields via JavaScript, then renabling them as required.
I've written a plugin that extends Parsely and adds conditional logic. However I've found an error in Parsely when toggling required fields. Take a look at the url below and follow the steps below to reproduce. Note that I've also recorded a video that shows the error and also the console output which confirms the issue.
Here's the url: http://monkinteractive.com/parsely/
The only way to remove the validation is to do the following:
From what I can tell by checking off an option on the checklist it causes the removeItem method to run twice. Since the first time the hash comes up with a random string, it then proceeds to the second item in the checklist array.
Have a look at the video below for details, it's a recording of my desktop displaying the problem, the function itself and the console output. http://monkinteractive.com/parsely/error-video.mp4
This happens only with lists of checkboxes or radio buttons.
This problem is critical to the plugin I've developed since it loops through the form when the page loads, disabling all required fields via JavaScript, then renabling them as required.