By using UI Action when state is 'In progress' in incident form then show 'On hold' and 'Resloved' button and when state is 'On hold' then show 'In progress' and 'Resolved' button

shiva9
Giga Guru

I have tried this but i didn't know how to use two condition on same button. Can someone help me out in this.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can add multiple conditions in your UI action condition

Example below.

current.state == '2' || current.state == '4'

Regards
Ankur

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

View solution in original post

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

you can add multiple conditions in your UI action condition

Example below.

current.state == '2' || current.state == '4'

Regards
Ankur

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

 sir, did these two conditions work at a time in form

 

current.isNewRecord() && current.state == '1'

 

Hi,

yes it will work

Regards
Ankur

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