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

@Meet Mewada 

Sorry didn't get your requirement.

When UI action is clicked you need to show which fields and those should be in 2 column layout?

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

@Ankur Bawiskar 

So the actual requirement is, When UI Action is clicked, I want to show fields in 3 column layout. Refer attached screenshot.

 

MeetMewada_0-1751891562532.png

Out of these, few fields are reference type and when we compare the design, the difference is evident.

 

MeetMewada_1-1751891691262.png

In order to address this, I thought to use UI Builder to create the layout, but when it comes to maintenance, its not so easy to maintain. In future, if business wish to add or remove fields, it will require much more effort. 

So I wanted to explore any possible means to keep it simple, and easy to configure.

 

Hope this helps.

 

@Meet Mewada 

yes if that's the case, you might require UI builder component which is somewhat difficult to maintain and the script is somewhat complex.

I will suggest to stick to the OOTB syntax and inform the customer about the layout and look and feel of the UI.

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 

Thank you for marking my response as helpful.

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