LinkedIn
Copied!

Table of Contents

Adding conditions to an action set

Version:

Only available versions of this content are shown in the dropdown
Applicable to Theme Cosmos applications

Build a flexible interface that responds to the needs of your users by defining conditions that determine when an event that is attached to a control triggers an action.

For example, a takeout application might include a text field for users to enter additional information about their order. You can configure that field to display a tooltip on hover only when it is empty.
Create or identify a control with an action set that you want to edit. For more information, see Adding action sets to a control.
  1. Open the view that you want to edit.

    For more information, see Accessing views in your application.
  2. In the configuration pane on the right side of the window, hover over the control, and then click the Edit icon.

  3. In the configuration pane, click Action set.

  4. Expand the action to which you want to add a condition, and then click Add a condition.

  5. In the When list, choose the condition that you want to apply to the action:

    • To enable the action set when the field has focus, select Active.
    • To enable the action set when the field's property has a specific value, select Associated property, and then define the property settings.
    • To enable the action set when the field is empty, select Empty.
    • To enable the action set when the field does not have focus, select Inactive.
    • To enable the action set when the field is optional, select Not required.
    • To enable the action set when a defined property has a specific value, select Other property, and then define the property settings.
    • To enable the action set when the field holds a property value, select Populated.
    • To enable the action set when the field is mandatory, select Required.
    • To define a when rule for the action set, select When rule, and then select the rule that you want to use.
    For more information, see Creating a When rule.
  6. Optional:

    To define another condition, click Add a condition, and then define the logical operator that links the existing conditions.

    Select AND to launch the action only when both conditions are met.
  7. Save the form by clicking OK.

The following image represents a configuration that displays the tooltip on hover, but only if the target text field is empty.
Sample configuration of an action set condition
The When field in the Condition section is set to empty.
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.