Hello
You can configure the onclick event as follows:
getField('fieldname1').jQueryRef().addClass('cff-collapsed');
Best regards.
Thanks! And what is the class for un-collaps? cff-uncollapsed?
Hello @michaelrieder
Only remove the cff-collapsed class from the field.
Best regards.
Hi CodePeople
I like to use it differently. When I press the button “summary” I like to collaps 2 Detail-Fieldsets.
When I press another button “Reset” I like to uncollaps the two fieldsets.
This requires a function I guess.
Hello @michaelrieder
In this case, a button adds the class to both fields, and the other button removes them.
If you need a custom coding service to implement that part of your project, you can contact us directly via the plugin website. Contact Us
Best regards.