Open a form in dialog window in Next Experience

Meet Mewada
Tera Expert

Hi team,

 

Understand below use case.

1. I have an INC INC000001 opened in custom workspace

2. On the INC form, i want to show a button called "Quick Close"

3. Upon clicking, it should show a dialog window, with essential fields. The fields in window will be displayed based on user input in the dialog window

4. Click Submit -> Will update the changes in the INC form.

 

I created a declarative action implemented as UXF Client action. 

Created a Dialog window using UI Builder. 

However, displaying fields & form in the dialog window requires creating custom components in UI Builder. Is there a way where I can simplify the form layout and write the server logic?

 

Thanks in advance!

 

Regards,

Meet M

8 REPLIES 8

Ankur Bawiskar
Tera Patron
Tera Patron

@Meet Mewada 

you can use g_modal API and render UI page or your own fields on that page within Workspace client script

Once user enters the data you can update the form field

check this

How to use UI Actions in Workspaces 

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Meet Mewada
Tera Expert

Hi @Ankur Bawiskar 

 

Very well! I tried this, but the UI/UX is not the same as Polaris. 

@Meet Mewada 

which UI you want this to show?

share screenshot.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

FYI!

 

MeetMewada_0-1751890099655.png

 

Using UI Script & Jelly, we wont be able to achieve such layout.  Refer screenshot 2:

MeetMewada_1-1751890455455.png