UI Action is only visible to Requested By manager and Requested by on Change Form

Aryan
Tera Contributor

Can any one provide me the condition for UI action in change form so it is only visible to requested by and requested by manager ?

3 ACCEPTED SOLUTIONS

Harish KM
Kilo Patron
Kilo Patron

Hi @Aryan you can use below script and put it in UI Action condition

current.requested_by == gs.getUserID() || current.requested_by.manager== gs.getUserID() 

Regards
Harish

View solution in original post

Priyanka_786
Tera Guru
Tera Guru

@Aryan : Use below line of code in condition.

 

gs.getUserID()== current.requested_by || gs.getUserID()== current.requested_by.manager
 
Hope it helps. Kindly mark helpful/accepted if it helps.
Regards,
Priyanka Salunke

View solution in original post

James Chun
Kilo Patron

Hi @Aryan,

 

Try the following script in your UI Action condition.

 

current.getValue('requested_by') == gs.getUserID() || current.requested_by.manager.toString() == gs.getUserID();

 

Might want to put some additional conditions such as 'current.active == true' as well.

 

Cheers

 

View solution in original post

3 REPLIES 3

Harish KM
Kilo Patron
Kilo Patron

Hi @Aryan you can use below script and put it in UI Action condition

current.requested_by == gs.getUserID() || current.requested_by.manager== gs.getUserID() 

Regards
Harish

Priyanka_786
Tera Guru
Tera Guru

@Aryan : Use below line of code in condition.

 

gs.getUserID()== current.requested_by || gs.getUserID()== current.requested_by.manager
 
Hope it helps. Kindly mark helpful/accepted if it helps.
Regards,
Priyanka Salunke

James Chun
Kilo Patron

Hi @Aryan,

 

Try the following script in your UI Action condition.

 

current.getValue('requested_by') == gs.getUserID() || current.requested_by.manager.toString() == gs.getUserID();

 

Might want to put some additional conditions such as 'current.active == true' as well.

 

Cheers