How to enable . configure Cancel button in new problem form

Research
Tera Guru

Hi
I want to enable the Cancel button in problem form when state is "new"

Cancel button is visible when state is Access and RCA, Resolved 

Research_0-1744149428656.png


Similar I want the button in new state

Research_1-1744149502209.png

any suggestion help me

Thanks

 

2 ACCEPTED SOLUTIONS

Hello @Research 

 

Just append this in the beginning - 

 

current.state == '101' || (.......your existing conditions....) 

 

This will.make it shownup in new state as well. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

View solution in original post

@Research 

ensure you update the existing condition and add yours with OR condition

Also ensure you allow the state transition for this as mentioned by @Shivalika 

Remember you might have to update the Form action for workspace

 

AnkurBawiskar_0-1744175561262.png

 

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

View solution in original post

13 REPLIES 13

Shivalika
Mega Sage

Hello @Research 

 

Just modify the UI Action "cancel" on the problem table. 

 

In the conditions field just add below 👇 

 

|| current.state == 'BACKEND VALUE OF NEW' 

 

Share the screenshot of cancel UI action, I will tell, if above is not clear. 

 

Kindly mark my answer as helpful and accept solution if it helped you in anyway. This will help me be recognized for the efforts and also move this questions from unsolved to solved bucket. 

 

Regards,

 

Shivalika 

 

My LinkedIn - https://www.linkedin.com/in/shivalika-gupta-540346194

 

My youtube - https://youtube.com/playlist?list=PLsHuNzTdkE5Cn4PyS7HdV0Vg8JsfdgQlA&si=0WynLcOwNeEISQCY

Ankur Bawiskar
Tera Patron
Tera Patron

@Research 

why to modify the OOTB UI actions?

Is that a business requirement?

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

Research
Tera Guru

Yes Business requirement  @Ankur Bawiskar 

Research
Tera Guru

@Shivalika Research_0-1744172848926.png

Backend value

Research_1-1744172961101.png