UI Action "Reject" Button clicks then Comments field to mandatory

Madhuavandhy
Tera Contributor

I have Place the Reject button using UI Action, When I click that button it get reject and move to the list view but I have to enable the comments within  the form view itself

Madhuavandhy_0-1686811776747.png

 

1 ACCEPTED SOLUTION

Ahmmed Ali
Mega Sage

Hello @Madhuavandhy 

 

Below thread has similar requirement and you an reuse same script (Modify field names as required)

 

https://www.servicenow.com/community/developer-forum/ui-action-button-reject-requires-mandatory-addi... 

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

View solution in original post

2 REPLIES 2

Ahmmed Ali
Mega Sage

Hello @Madhuavandhy 

 

Below thread has similar requirement and you an reuse same script (Modify field names as required)

 

https://www.servicenow.com/community/developer-forum/ui-action-button-reject-requires-mandatory-addi... 

 

Thanks,

Ali

 

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali

Also make sure you have client check box enabled in the UI action and give same function name in onclick field

If I could help you with your Query then, please hit the Thumb Icon and mark my answer as Correct!!

Thank you,
Ali