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

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

@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

Research
Tera Guru

Thanks
okay but
there is error

Research_0-1744173934454.png

 

Hello @Research 

 

That is not an error because of the UI Action, its because you are doing invalid state transition in the change request. It will not allow you to jump from closed to new or vice versa because some fields are filled - which shouldn't be filled. 

 

Create a new change request and test this out - this will work. 

 

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

Research
Tera Guru

Still No luck- I also tried in PDI 

Same error 
For probem 

Research_0-1744215670261.png