We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Auto-refresh linked list when a record is created

lucasmine50
Tera Contributor

auto-refresh.png

I need to implement the following validation: when a user creates a record within this modal, the linked list should refresh automatically.

My current solution triggers a full page refresh (similar to pressing F5) when the 'Cancel' or 'X' buttons are clicked. However, this causes the page to reload even if the user opens the modal by mistake without saving anything. I only want the refresh to occur if a record is successfully created.

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@lucasmine50 

I think this is not feasible.

Reason being the control is passed to modal and script can't interact with the backend form

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@lucasmine50 

Hope you are doing good.

Did my reply answer your question?

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader