Hide a UI Action on a form when its state is closed or canceled

yasserbouat
Tera Guru

Hello dears,

I created an UI Action called "X" , on "change request" table, and i want to not display it on the form when the state of a change request is closed or canceled, so I specified in the condition : current.state != 7 , but it d'din' work, so I tried current.state != '7' and current.state != closed and current.state != 'Closed' and nothing : does someone know what to specified in the condition please : 

yasserbouat_0-1741876965105.png



yasserbouat_1-1741877016378.png

 

1 ACCEPTED SOLUTION

yasserbouat
Tera Guru

I found the solution and I wanted to share it with you 🙂

Right click on "state" field and i found that the state closed = 3 , so I changed the condition and it worked : 

yasserbouat_2-1741877900013.png

 



yasserbouat_0-1741877831781.png

 

yasserbouat_1-1741877861147.png

 

View solution in original post

3 REPLIES 3

J Siva
Tera Sage

Hi @yasserbouat 

OOB State value for "Closed" is '3'.

So in condition use the below script,

(current.state!='3')

 

Hope this helps.

Regards,

Siva

 

KeerthiP
Mega Guru

Hi ,

 

Please check if theer are any other UI polcies or client scripts interefering this condition.

Ideally the condition uses backend value and hyou already tried that.

 

Thanks,

Keerthi

yasserbouat
Tera Guru

I found the solution and I wanted to share it with you 🙂

Right click on "state" field and i found that the state closed = 3 , so I changed the condition and it worked : 

yasserbouat_2-1741877900013.png

 



yasserbouat_0-1741877831781.png

 

yasserbouat_1-1741877861147.png