Button functionality

hadron_collider
Tera Contributor

Hi!

 

What i need to do in order to achieve the following:

 

1. When the button 'reject' is clicked a field 'reason' shows and is mandatory

2. When 'reason' is filled in and we click again 'reject' amount value changes to 0 and we exit the form

 

kata90_0-1702398869806.png

 

1 REPLY 1

Sujatha V M
Kilo Patron
Kilo Patron

Hi @hadron_collider ,

 

In UI action "Reject", valid the scenarios with "Reason" field. 

If the reason field is empty, make it as mandatory. If not, clear the amount value. 

Reference: https://servicenowguru.com/system-ui/ui-actions-system-ui/client-server-code-ui-action/

 

Mark it as helpful and solution proposed if it serves your purpose.

Thanks,

Sujatha

Please mark this as helpful and accept it as a solution if this resolves your query.
Sujatha V.M.