• Resolved andrehlprr

    (@andrehlprr)


    Hey,

    when I click on the button “Kalkulator öffnen” a popup will open with the form. In this form I have several fieldsets which are collapsed by default in the options and should only show if the option is selected with a radio button.

    But when I click on the button and the popup opens all fieldsets are already shown. If I select one option with a radio button and uncheck it the fieldsets are not shown. I want the fieldsets to be hidden when the popup opens and only shown when you select an option with the radio button.

    Kind regards

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

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

    (@codepeople)

    Hello @andrehlprr

    Thank you very much for using our plugin. Please, try the following modification in the plugin’s settings.

    1. Go to the settings page of the plugin by pressing the menu option: “Calculated Fields Form”.

    2. Select a different option for the “Script load method” attribute, and press the “Update” button.

    3. Finally, if you are using a plugin to manage the website’s cache, please, purge the cache.

    Best regards.

    Plugin Author codepeople

    (@codepeople)

    Hello @andrehlprr

    If the previous modification does not fix the issue, please, insert an “HTML Content” field in the form with the following piece of code as its content:

    
    <script>
    jQuery(document).on('click','[href*="popup"]', function(){
       setTimeout(function(){
           jQuery('[id*="fieldname3_"]').change();
       },50); 
    });
    </script>
    

    Best regards.

    Thread Starter andrehlprr

    (@andrehlprr)

    The first modification did not fix the issue but inserting an HTML element with your script did fix my issue.

    Thanks alot!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fieldset is not collapsed when opened’ is closed to new replies.