Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Submit button on AO's causing duplicate receiving slip lines

MayrelCerero
Tera Expert

Hello!

 

I'm working on a way to stop users from accidentally submitting the Receive Purchase Order pop-up more than once, since clicking the submit button multiple times ends up doubling the counts. The submit button isn't a standard UI Action, so I tried using a client script, but no luck so far. Anyone have ideas on how to fix this?

 

//I have this set on the Asset Order [proc_po] table
function onSubmit() {
    var submitButton = g_form.getControl('sysverb_insert');
    if (submitButton) {
        submitButton.disabled = true;
        return true;
    }
}

 

0 REPLIES 0