Hello @aveste
I’m not sure what do you mean exactly. However, if you prefer to show/hide fields by pressing a button, I’ll try to describe the process below:
* Insert a button in the form and then insert a Div
field with some fields inside it.
* Now, assign to the Div
field two class names: my-field hide
Note: the class names are assigned to the fields through their attributes: “Add CSS Layout Keywords”. If you need to assign multiple class names to the same field, like in this case, separate them by a blank character.
* Finally, enter the following piece of code as the onclick event of the button inserted previously:”
jQuery('.my-field').toggleClass('hide');
And that’s all. By pressing the button you will be showing/hiding the Div field with its contained fields.
Best regards.