Whenever cancel UI action is clicked on i need keep state as cancelled not closed

Saranya K
Tera Contributor

Hi all,

 

As per OOB Cancel UI action in problem form it will set state as "Closed " But I need to set that to "Cancel" whenever Cancel UI action is clicked on.

 

SaranyaK_1-1732257951788.png

 

There is one OOB script it's not editable.

 

How can we edit and will achieve this.

 

SaranyaK_2-1732258126125.png

 

Thanks

 

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@Saranya K 

why do you wish to change the OOB behavior?

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Saranya K 

did you check that UI action opens up which UI page?

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

Nishant8
Giga Sage

Hello @Saranya K , since Problem doesn't have any Canceled state configured, it directly moves to Closed state with Resolution code as 'Canceled'.

 

Regards,

Nishant

Hi @Nishant8 ,

 

I need to add new choice as cancelled and I need to customise this ui action and script include to set state field as 'cancelled.

How can Iwe achieve this

Thanks