Need to remove Close(X) button from spmodal and user need to acknowledge the popup
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 01:32 AM
I created a onload catalog client script with the following script
function onLoad() {
spModal.open({
title: 'Test.',
message: "ACknowledge before proceeding",
size: "md",
buttons: [
{label:'I Acknowledge', primary: true},
//{label:'Cancel', primary: false}
]
}).then(function(ans){
if (ans.label == "I Acknowledge"){
//alert('party');
}
});
}
This is how the popup comes up onform load.
I need to remove close button(x) which is at right corner and if i click on escape key the popup gets closed need to restrict that. Because before proceeding with catalog item user needs to acknowledge and order the catalog item
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 01:37 AM
Whot you can do is make the glyph as display:none
Regards
Pranav

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 01:44 AM
.fa-close{
display:none;
}
Add this to widget CSS.
Pranav
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 03:13 AM
im using the above code in onload client script not on widget

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 05:03 AM
modify the widget/page css and add this.