UI Action condition script on value of the value of a field on the form

Dlam
Tera Expert

Hi,

I am updating a UI action for the Form button to be visible to user matches the value of a form field. With the following condition somehow the form button does not show. Any idea why it is not working?

 

(current.contract_administrator==gs.getUserID())  &&  (current.state == 'active' || current.state == 'expired')

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

I dont see any issue unless the state field has a different name or the state values are not matched.

Also make sure, Form button checkbox is selected. And there is no role linked to the UI action.

SanjivMeher_0-1717738223010.png

SanjivMeher_1-1717738266311.png

 

 


Please mark this response as correct or helpful if it assisted you with your question.

Thank you. Form button checkbox is ticked, and there is no role linked to the UI action.

Somehow it does not work with that one condition for the field value.