Re-evaluate/Refresh UI Actions on Form After Related list Updates Without Hard Refresh in workspace.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 05:37 AM
I have a form declarative action named "Submit for Approval" on the Quote form in workspace.
The expected behavior is that the action should re-evaluate validations and update the UI actions on the form accordingly.
These validations depend on the Quote Line records in the related list.
However, when I update a Quote Line, the UI actions on the Quote form are not re-evaluated automatically. A hard refresh is required to see the changes.
Is there a way to trigger the re-evaluation of UI actions without needing a hard refresh?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 06:07 AM - edited ‎02-17-2025 06:08 AM
Hi @PreethikaG
We had a similar req, the buttons will not be visible unless the form is re-loaded
Take a look at this and see if this works in your UI Action code- https://servicenowguru.com/client-scripts-scripting/reload-form-related-list-client-script/
We have this button OOTB here, which reloads the current form but not the complete page.
As an Alternative We have provided Reload Form Button on the form ( Create a Client UI Action with below code in workspace client script)
g_form.reload();
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2025 06:26 AM
@PreethikaG Just wondering if location.reload() should do the trick here? May be you can try not sure though.
Thank you,
Mahesh.