Show and Hide for Affected Elements

Business Background

Dynamically change whether elements or shown or hidden based on user action or information from Salesforce.

How to Guide

Note:

Prerequisite:

1. Add an Affected Element node to an element such as a button.

This image has an empty alt attribute; its file name is image-95.png

2. Alternatively, configure a condition.

This image has an empty alt attribute; its file name is image-161.png

  1. Select the element/s that you want to affect by clicking the relevant checkbox/es.
    • These are all the elements in your project.
    • If necessary, use the Search element/s field.
  2. Use the drop-down list to select an option:
Drop-down list
Drop-down list
Note:

Protip:

Make sure you add the elements in a form or an auto fit container. This will ensure that the web page contents are properly resized when hiding or showing elements.

In this example, the button element is also added in the form to make sure that it resizes correctly.

Show

Use this option to show a hidden element.

Note:

Prerequisite:

In this example, text field B is set to Hide Onload.

The Show option is the default. In this example, text field B will be shown.

Show option
Show option
  1. Click the Apply button. The tag “Show” is added to the selected element/s.
  2. Click the Next button.
Show added
Show added
  1. If required, change the tag and click the Insert button. The node is added to the screen.
Tag field
Tag field
  1. Click the Apply button.
Node added
Node added
  1. Save and Preview the project.

Text field B is hidden when the page loads. It is shown when the user clicks the button.

Example
Example

Hide

The Show option is the default.

  1. Use the drop-down list to select the Hide option. In this example, text field C will be hidden.
Hide option
Hide option
  1. Click the Apply button. The tag “Hide” is added to the selected element/s.
  2. Click the Next button.
Hide added
Hide added
  1. If required, change the tag and click the Insert button. The node is added to the screen.
  2. Click the Apply button.
  3. Save and Preview the project.

When the user clicks the button, Text field C is hidden.

Example
Example

Hidden Title

Need more help?