Customize Pop-up Dialog UI Action

Sofija
Giga Expert

Hi All!

I am trying to remove and add some fields to a dialog UI action on ast_contract table. In order to remove not wanted fields I would usually just remove them from UI action, however, this time when I remove those fields from UI action script it they still remain on the button. Examples below.

Also - some of the fields (marked in orange) are in the UI action but not on the dialog box. I thought that this may need to be edited on another table, but I cannot seem to figure out where it is... Could maybe someone be able to help me find why this is not working? Am I missing something?

example.PNG

I would greatly appreciate any suggestions!

Kind Regards,

Kamile

1 ACCEPTED SOLUTION

Katie A
Mega Guru

Hi Kamile,



There is a UI Page that is associated with the GlideDialogWindow script where you should be able to edit which of the fields will display there.



Take a look at the UI Page that you are referencing in your GlideDialogWindow object constructor.



The name of the UI Page would be "contract_extension_group".



GlideDialogWindow API Reference - ServiceNow Wiki


View solution in original post

6 REPLIES 6

Katie A
Mega Guru

Hi Kamile,



There is a UI Page that is associated with the GlideDialogWindow script where you should be able to edit which of the fields will display there.



Take a look at the UI Page that you are referencing in your GlideDialogWindow object constructor.



The name of the UI Page would be "contract_extension_group".



GlideDialogWindow API Reference - ServiceNow Wiki


Thank you for your help!


Mike Allen
Mega Sage

GlideDialogWindow: QuickForms - ServiceNow Guru



Create a view with the fields you want, then call:



dialog.addParm('sysparm_view', '<your_view>'); //Specify a form view


ashikabu
Kilo Contributor

Hope this helps!


Displaying a Custom Dialog