Make field mandatory only in a dialog box (UI Action)

GianluNow
Mega Expert

Hi,

I have a list choice UI Action that open this dialog box.

find_real_file.png

It's possible to make mandatory any fields only in dialog box and not in incident form ? I want to make mandatory "Processing notes " fields.

11 REPLIES 11

Willem
Giga Sage
Giga Sage

Hi,

 

Can you share how the Dialog box is set up?

 

Assuming you load a Form in the Dialog with a specific view, you can create a UI Policy for only that view:

Uncheck Global:

find_real_file.png

 

View field appears and you can select the view:

find_real_file.png

 

In the UI Policy Actions set the field you want to be mandatory:

find_real_file.png

 

Let me know if you need any further assistance.

Hi Willem, thanks for your answer.

I've created a new UI Policies with this setup :

 

find_real_file.png

But the selected field is not yet mandatory. There is anything else that i need to check?

Thanks

Hi,

How are you opening up the Dialog?

Is that a custom UI page?

Regards
Ankur

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

Hi Ankur,

yes, this is a custom view with some specific fields :

find_real_file.png

And this is call from onClick function of related UIAction :

find_real_file.png