- Configuring and Extending Benefits
- Add Text for Only People in a Specific Legislation, on the Report Life Event Page
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 ActiveHere's what to do
- Go to Navigator > Configuration > Sandboxes.
- Enter your sandbox.
- Go to and open Me > Benefits > Report a Life Event.
- On the Settings and Actions menu, click Edit Pages.
- Confirm that the edit page header has Edit Layer: Site - SITE.
- On the View menu, select Source.
- Expand the Source pane.
- Click the information component.
- On the Confirm Shared Component Edit dialog box, click Edit.
- In the Source pane, click <>HcmMessage, if it's not already selected.
- On the Source pane toolbar, click the Show the properties of HcmMessage icon.
- On the Component Properties: HcmMessage dialog box, Display Options tab, in the Additional Text field, select Expression Builder.
-
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.' : ''}
- Click OK.
- On the Component Properties: HcmMessage dialog box, click Apply.
- Click OK.
- To render your changes, on the page, click Close.
- To verify your changes, on the Sandbox Mode: Edit menu, select Preview as if Published (Context: All).
- To publish your changes, on the <YourSandboxName> menu, select Publish.