Custom Attribute added to x-modal-close

Hi support!

I am trying to add a custom attribute to x-modal-close.

The goal is to hide a div contained in the modal and ensure that it is not displayed the modal is not open.

I have added a custom attribute to the toggle but I am unable to replicate the function for closing the modal.

Any assistance would be greatly appreciated; thank you!

Hello @builtin30,

Thanks for writing in!

Please use onclick and showForm(); in your custom attributes:

If your hidden DIV element is now showing after clicking the Modal toggle icon, there must be something wrong with your custom JS code. Be advised that custom coding is beyond the scope of our support. This is considered custom development already. We highly recommend that you contact a 3rd-party developer to do this customization for you.

Best Regards.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.