How to open a GlideModalForm on Next Experience UI?

DhyeyP
Tera Contributor

I am trying to migrate a UI action on related list from Classic UI to Configurable Workspace. The UI action is populated on a related list and opens the form view of a another table using the GlideModalForm API.

 

To mimic the same behavior on the Next Experience UI, I have created a Related List Declarative Action, implemented as Client Script and tried the following minimal script to try opening the form in a modal window -

function onClick() {
	var modalForm = new GlideModalForm('TEST ABC', <tablename>);
	modalForm.render();
 }

But upon clicking the action button - I get the folowing error in my console -

Error while running Client Script "GlideScopedScript": ReferenceError: GlideModalForm is not defined

 

Could someone please help me find a solution to this?

0 REPLIES 0