I'm trying to add an accordion feature to a CRED form in order to organize all the input fields. I'm following the code provided in the link below for the function:
hidden link
I have the accordion working properly, but every time I click the accordion to expand I get a CRED warning about required empty fields. It almost like its trying to submit every time I click the accordion. Is there any way to stop this from happening?
Is there a way I can add some form of ID to the accordion button code so that when the accordion is clicked it only tuns the accordion code instead of the CRED submit button code?
Thanks
EDIT: what about calling the function:
.preventDefault()
in the js code for the accordion buttons? Seems like it might prevent the buttons from submitting.
So - you should activate the bootstrap from:
=> Toolset => Settings => General tag => Bootstrap loading section => Select "Toolset should load Bootstrap 3.0".
Then you should try following code - it should work. hidden link