Service Portal g_form.submit() equivalent

Dan142
Giga Expert

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;				
});
1 REPLY 1