Close modal ui page by clicking the cancel button
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2024 07:06 AM
Hello, I have created a modal ui page that has a cancel button. When the cancel button is clicked I would like for the modal to close.
button:
<button style="padding:5px;margin-right:10px" onclick="window.cancelAction(this.innerHTML,jQuery(\'#taskCancellation\').val())" class="btn btn-default">Cancel</button>
function:
window.cancelAction = function(thisButton){
if(thisButton){
//Close the glide modal dialog window
gm.destroy();
window.close();
}
};
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-27-2024 09:06 AM
@DreDay3000 Please refer the link for different modal UI actions activity and modify it accordingly for your modal.
Please mark this as helpful and accept it as a solution if this resolves your query.
Thanks,
Sujatha V.M.
Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.
Sujatha V.M.