Service Portal g_form.submit() equivalent

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2019 07:38 AM
What is the Service Portal g_form.submit() equivalent?
The goal is to have a modal prompt the user upon submit in the Service Catalog. After approving to continue the client script needs to submit the current form.
spModal.open({
title: 'Is the following correct?',
message: html,
buttons: [
{label:'✘ No', cancel: true},
{label:'✔ Yes', primary: true}
]
}).then(function() {
g_form.isValid = true;
g_form.submit(); // Need SP equivalent as this does nothing
}, function(){
g_form.isValid = false;
});
Labels:
- Labels:
-
Service Portal
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-04-2019 07:51 AM