UI builder page - reload entire form

dgovindhara
Tera Contributor

Hello,

 

       I have requirement as below:

       In custom workspace, we have playbook tab and details tab of form. If state is updated from backend (any script), reload entire page including playbook. 

     How can i implement in ui builder page or there any way to implement it?

 

Thanks,
Devadharshini

2 REPLIES 2

Naveen20
ServiceNow Employee

If it is a record form it updates automatically like showing (updated by admin). You can do a refresh based on some condition if needed or use record watcher and call refresh event. Can you give more details about what components are there in your playbook.

lauri457
Tera Sage

The record page should OOB subscribe to changes on the current record and update the field values. Your requirement does not sound like great UX.

 

If you still need this. On the record page, add an AMB watcher or record watcher data resource. Bind the table from the context and add a filter of sysid is the sysid from context props.

Add an event handler of "Request refresh" from the form controller on the "message received" event. Add a condition that matches your change. For example add condition to when to trigger if changed fields includes state

LASTINDEXOF(data.payload.changes, "state")

 

lauri457_0-1776399297366.png