• Resolved michaelrieder

    (@michaelrieder)


    Hi CodePeople

    is there a function in order to collaps a fieldset by pressing a button?

    e.g. COLLAPSFIELD(‘fieldname1’)

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello

    You can configure the onclick event as follows:

    getField('fieldname1').jQueryRef().addClass('cff-collapsed');

    Best regards.

    Thread Starter michaelrieder

    (@michaelrieder)

    Thanks! And what is the class for un-collaps? cff-uncollapsed?

    Plugin Author codepeople

    (@codepeople)

    Hello @michaelrieder

    Only remove the cff-collapsed class from the field.

    Best regards.

    Thread Starter michaelrieder

    (@michaelrieder)

    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.

    Plugin Author codepeople

    (@codepeople)

    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.

    Thread Starter michaelrieder

    (@michaelrieder)

    Got it! Thanks a lot.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Collaps field by button’ is closed to new replies.