Show UI action button based on logged in user company is same as company field on a form

Priyanka145
Tera Contributor

Hi All,

I want to display a UI action only if logged in user company matches the company field on form.

If logged in user company is XYZ, and the company field on the form value is XYZ, then only UI action should be visible. Else, it should hide.

Please help me how can I acheive it.

Over UI action, I am trying to add a condition gs.getUser().getRecord(company).(current.u_company) But its not correct. Please guide me here.

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

hello,

in UI ACTION condition your can give as below 

gs.getUser().getCompanyID()==current.your company field name

please mark my answer correct if it helps you

View solution in original post

10 REPLIES 10

I have logged out and logged in , then I see its working fine . Thankyou.