Disable the Edit Button for Plan Type Grouping on Self-Service Benefits Pages

Benefits administrators also have the Employee role. They need to be able to edit a plan type grouping, such as Health and Welfare, in the Benefits Service Center. But they shouldn't be able to edit the groupings from their self-service Benefits pages. To limit this editing, you can disable the Edit button on the self-service pages.

Before you start

Create a Sandbox and Make It Active

Here's what to do

  1. Go to Navigator > Configuration > Sandboxes.
  2. Enter your sandbox.
  3. Go to Me > Benefits > Enrollment.
  4. On the Settings and Actions menu, click Edit Pages.
  5. Confirm that the edit page header has Edit Layer: Site - SITE.
  6. On the View menu, select Source.
  7. Click a plan type grouping Edit button.
  8. On the Confirm Shared Component Edit dialog box, click Edit.
  9. On the Source pane toolbar, click the Show the properties for Edit icon.
  10. On the Component Properties: Edit dialog box, in the Disabled field, select Expression Builder.
  11. On the Expression Editor dialog box, in the Type a value or expression field, enter this expression:
    #{securityContext.userInRole['ORA_BEN_BENEFITS_ENROLLMENT_MAINTENANCE_DUTY'] and
     (pageFlowScope.configurationMap.pCalledFrom ne 'BSC')}
  12. Click OK.
  13. On the Component Properties dialog box, click Apply.
  14. Click OK.
  15. To render your changes, on the page, click Close.
  16. To verify your changes, on the Sandbox Mode: Edit menu, select Preview as if Published (Context: All).
  17. To publish your changes, on the <YourSandboxName> menu, select Publish.