Suppress "Record Updated" message when updating a record with Form widget

Matt S6
Tera Contributor

In our Employee Center portal we created a page with the out-of-the-box Form widget so team members could interact with records in the portal, rather than having to navigate to the native UI (desktop). We have several UI actions available on the table, and depending on which one the user clicks, a custom message confirming the transaction is displayed. However, we also get "Record Updated" displayed. So we get output that looks like this:

 

MattS6_0-1687962322781.png

 

 

The first message may vary; some messages we have include "Published" or "Your record has been marked for deletion. You have until (DATE/TIME) to reactivate it." But the "Record Updated" is always there. It seems redundant, and we've gotten feedback from some team members that it is confusing. In the native/desktop UI, our custom messages display just fine, without "Record Updated".

 

Is there a way to suppress the "Record Updated" message without cloning the OOB Form widget? I would prefer to avoid cloning the widget because any clones can break with a future ServiceNow release, or force us to manually apply the new code changes to the cloned widget to ensure they keep working correctly.

 

Matt

1 REPLY 1

jcmings
Mega Sage

@Matt S6 I would recommend duplicating the form widget and then commenting out the line data.updatedMsg = gs.getMessage("Record Updated"); in the server script. For me, it's on line 7 of the SS.