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.
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:
Best regards,
Max
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
Thanks for the sample. On closing the form warns for incomplete fields, how can I switch off validation when closing the form?
Thanks for the sample. On closing the form warns for incomplete fields, how can I switch off validation when closing the form?
Hi alien1020,
Well, in this case you may need to use a custom HTML instead of a button, try the following the code:
And use the same JS code to reference the link in the code.
Best regards,
Max
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
This topic is locked and no more replies can be posted.