You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Hide Submit button based on Role

Received Response
23
Views
3
Comments
edited Oct 5, 2020 11:30PM in Compensation 3 comments

Summary

Hide Submit button based on Role

Content

Hello,

We need to hide Submit for Approval button for managers belonging to one role but show it for managers belonging to another role. Can you advise how this can be achieved? 

We tried using personalization but we're getting some error. Is it feasible to use securityContext.userInrole here ? 

This is the seeded EL expression available for the field :

#{backingBeanScope.planOverviewBean.submitEnabled && ((!backingBeanScope.planOverviewBean.submitted && !backingBeanScope.planOverviewBean.approved && !backingBeanScope.planOverviewBean.topLevelMgr))}

Thanks!

 

 

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!