Add Text for Only People in a Specific Legislation, on the Report Life Event Page

To show additional information for only people in a specific legislation, you can enter additional message text on the Report a Life Event page.

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 and open Me > Benefits > Report a Life Event.
  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. Expand the Source pane.
  8. Click the information component.
  9. On the Confirm Shared Component Edit dialog box, click Edit.
  10. In the Source pane, click <>HcmMessage, if it's not already selected.
  11. On the Source pane toolbar, click the Show the properties of HcmMessage icon.
  12. On the Component Properties: HcmMessage dialog box, Display Options tab, in the Additional Text field, select Expression Builder.
  13. On the Expression Editor dialog box, in the Type a value or expression field, enter the appropriate expression. Here's an expression that tells people in the GB legislation that they can't report a future-dated event.
    #{sessionScope.BEN_LegislationCode eq 'GB' ? 'You can't report an event with a future date. For more info, read all of your benefits policies or contact your benefits administrator.' : ''}
  14. Click OK.
  15. On the Component Properties: HcmMessage dialog box, click Apply.
  16. Click OK.
  17. To render your changes, on the page, click Close.
  18. To verify your changes, on the Sandbox Mode: Edit menu, select Preview as if Published (Context: All).
  19. To publish your changes, on the <YourSandboxName> menu, select Publish.