Display IN progress button when state is NEW.

Agent Arjun
Kilo Explorer

state is new Display IN progress button

5 REPLIES 5

Utpal Dutta1
Mega Guru

Hey, Arjun,

If i am not misunderstood then you want to show the In Progress button (UI Action) button. Then you just need to add a Condition in UI Action Conditions field:

Script:

current.state  ==  1 (Value of new) 

 

That's it!!! No need to change the In Progress button Script.

 

If my answer helps then please mark it Helpful as well as Correct.

 

Thanks and Regards:

Utpal Dutta

DxSherpa Pvt. Ltd.

Mr_X1
Tera Contributor

Hiii,

In this case,

You just need to to type " current.state == 1 " in condition field in UI Action.

 

Regards,

David

Megha Padale
Giga Guru

Hi Arjun,

Your need is to display In Progress button when State is new.

You can create a n UI Action named In Progress as form button and specify your condition as:

current.state==1

UI action will be visible only if state is new. Here I share screenshots.

 

find_real_file.png

 find_real_file.png

 

If my answer is helpful to you, mark it as helpful as well as correct.

Thanks and regards,

Megha.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Arjuna,

If your question is related to showing UI action condition based on some Drop Down choice field on form then you can use this condition in your UI action condition field

ensure you are using correct field name and choice values

current.<stateField> == 'New'

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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