Button modal in SOW

Somnath_snow
Tera Contributor

Hello Community!

I have created a cancel button in the SOW which when clicked would display a pop up asking for the Cancellation reason(i have created a field in the form) which is mandatory. Just like the OOB "Resolve" button in SOW(screenshot attached).

But i am unable to make the actions performed when i click the button. I think it is achievable by creating a modal in the UI builder, and then attach the "modalpath" in the "Action payload definition" , but i have lost the way further trying for at least 5days.

Any Help is absolutely appreciated if this thing is solved.

 

Thanks in Advance!

Somnath.

1 REPLY 1

Haseeb-Ahmed
ServiceNow Employee
ServiceNow Employee

Hi @Somnath_snow ,

Just FYI, there is a new version of the Resolve modal available in the SOW 3.1+ version, where configuring the fields becomes very straightforward using view. So, I would suggest you to follow below

1. Upgrade SOW to 3.1+

2. Create a view for your use case having desired fields on the view

3. Pass the view name in fields in the action payload (refer screenshot), and you can pass your custom cancel state field value in "setFieldOnLoad" and "setFieldOnSave", then you should be all set.

Screenshot 2024-03-15 at 10.51.03 PM.png

Please accept the solution or give a thumbs up if it helps you.

Thanks,
Haseeb Ahmed