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

Hi,

Did you try checking whether the UI policy itself is triggering?

Can you try checking by creating a client script onload for this view and check any alert comes?

Regards
Ankur

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

Client script works. It show me Alert message and make field mandatory.

find_real_file.png

The problem that it works only if I change view from "Additional action" menù.

find_real_file.png

It does not work for dialog box.

 

I am afraid you are right. So the UI Policy is not evaluated when you call the form from the Dialog.

I will see if I can find another solution and let you know.

Have you refreshed the complete page after creating the UI Policy?

Hi,

yes. The problem that it works only if I change view from "Additional action" menù but it does not work for dialog box.