Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2022 11:00 PM
I know the question is old, but as
function onLoad() {
spModal.open({
noDismiss: true, //removes the title and "x" button in the top-right corner
backdrop: "static", //makes it a true modal, will not close the window if clicked outside the window
keyboard: false, //will not allow the "Esc" key to close the window
size: "sm", //"md" is not actually a choice, only "sm" or "lg"
title: "Test", //would be removed by the "noDismiss" option
message: "Acknowledge before proceeding",
buttons: [{
label: "I Acknowledge",
primary: true
}]
}).then(function() {
spModal.alert("party"); //when "I Acknowledge" is clicked
});
}
Unfortunately these options are NOT documented in the Docs article on spModal.