ChronoEngine.com homepage

Forums

Please write a review for the extension you are using on the Joomla extensions directory before posting a new question as we are being spammed by many negative reviews.

Thank you for your support!

Close Button for Modal form

alien1020 16 Sep, 2017
I want to add the "Close" (or Hide) button next to "Submit" button for Modal form if a customer wants to close it without submitting anything... What properties should I use for element Button to implement that? Cannot find any solution on forums.
Max_admin 20 Sep, 2017
Hi alien1020,

The next update should have a close icon at the top right corner, but if you want a custom close button then you can add a normal button, get the button id, add a javascript element under designer and use this code:
$("#button_id").on("click", function(){
$(this).closest(".modal").modal("hide");
});

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
alien1020 20 Sep, 2017
Thanks for the sample. On closing the form warns for incomplete fields, how can I switch off validation when closing the form?
alien1020 23 Sep, 2017
Thanks for the sample. On closing the form warns for incomplete fields, how can I switch off validation when closing the form?
Max_admin 24 Sep, 2017
Hi alien1020,

Well, in this case you may need to use a custom HTML instead of a button, try the following the code:
<a class="ui button red compact" id="button_id">Close</a>
And use the same JS code to reference the link in the code.

Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.

2Checkout.com

2CheckOut.com Inc. (Ohio, USA) is an authorized retailer for goods and services provided by ChronoEngine.com