UI Builder / Asset Management Workspace – How to capture changed fields when using the existing Save
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
50m ago
Hi Community,
I’m working on an Asset Management Workspace / Asset Workspace in ServiceNow and need guidance on handling field changes when the user saves a Hardware Asset record.
Requirement
I have a Hardware Asset (alm_hardware) record opened from a Typeahead search in UI Builder.
The flow is:
Typeahead Asset Tag search → select asset → /record route → Hardware Asset form
The standard Workspace form has the existing Save button.
When a user changes one or more fields, I need the following behavior:
User opens an existing alm_hardware record.
User modifies one or more fields.
The modified values should remain visible in the form.
User clicks the existing Save button.
The record should be saved normally.
After the successful save, I want to display a notification/alert showing which fields were changed, ideally something like:
State: In Use → In Stock
Location: Bangalore → Mumbai
Assigned to: User A → User B
Important requirements
I do not want to create a second Save button.
I want to use the existing Workspace Save action.
I don't want to replace the standard editable form.
The customization should apply only to Asset Management Workspace, not globally to the classic UI or other workspaces.
I need to preserve the normal Save behavior.
What I have investigated
The form is using a Form Controller for alm_hardware.
The Form Controller JSON contains an actionConfigId, and the form's action bar is enabled, so the standard Save button is visible.
I checked UX Form Actions and found generic Save actions, but I don't want to modify the generic Save action because it could affect other tables/workspaces.
I also checked UX Form Action Layouts filtered for alm_hardware, but there is no Hardware-specific Save layout.
I also noticed the Form Controller has events such as:
[Form] Form status changed
[Notification] Add notification requested
My question
What is the recommended ServiceNow-supported approach in UI Builder / Configurable Workspace to:
detect the fields changed in the Workspace form → allow the existing Save action to save normally → after successful save, identify the changed fields/old and new values → display a notification?
Specifically, can this be achieved using:
Form Controller events/status?
A Workspace Client Script?
Declarative Action / UXF Client Action?
An Add-on Event Mapping?
The existing Save action's client script?
Another supported UI Builder mechanism?
I would also appreciate an example of the correct script/API for obtaining the changed fields and their old/new values in a Workspace form.
Thanks!
