How to make a warning popup upon clicking a UI button?

mitzaka
Mega Guru

Hi SNC,

 

I have a UI button which refers to a certain action (example: Reject) and I want when someone clicks this UI button, that he receives a message to fill a field before anything else happens. I know I could do a UI policy where I can make the field mandatory, but if I make it mandatory I have to use a condition based on state and I don't want to do this because in this state I have another UI buttons on the form like Approve, Publish, etc.

Is there a way I can say that the field will become mandatory only when a specific button is pressed?

Thanks in advance.

1 ACCEPTED SOLUTION

harikrish_v
Mega Guru

Hi Dimitar,



You can refer to the second script in this guru link, I guess this is what you are looking for:-



http://www.servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/



Regards,


Hari


View solution in original post

5 REPLIES 5

No problem..