Is it just me, or does g_form.modified not work in the Portal?

ctsmith
Mega Sage

I'm trying to prevent a user from submitting a catalog form if no fields have changed... after they have.  In this case, a user selects a CI they want to edit, and x number of fields are populated based on what CI they've chosen.  If they hit submit, it'll submit and create a request even though they haven't edited any of the fields.   Any ideas?

5 REPLIES 5

Thanks for the links.  Some of those I came across already, but didn't really help.  The unsupported client scripts doesn't seem to always list out some things whether they work or not.  I tried SN guru's ('.changed').length > 0) or changes() and they both brought back different numeric values, but those numeric values never changed even when a field was edited.

ntera4sho1
Tera Contributor

@ctsmith - I found this very helpful and it worked for me: Service Portal - Check if user modified fields on ... - ServiceNow Community

 

If my answer is useful/helpful, please mark it. Thanks

chitra11
Tera Contributor

Do you find a solution for this ?