Set Property Values Using Rules
In some pages, you can use rules to set values for extendable page properties. In the rules editor for page properties, you create rules and conditions for setting values, much like you do when using rules to override property values for fields in forms and tables.
For example, your page might use a Guided Journey Page Level Code property, and the dependency developer has made the property extendable. You can create rules to set the property's value based on conditions, such as the user's role. The value is applied only when the rule's conditions are met.
The following steps illustrate how to use the page property editor to set a property's value.
- Open the page you want to modify.
- In the Properties pane, under Page Properties, click Configure Page Properties to open the Page Properties editor.
When you open the Page Properties editor, click Start Preparing if the editor displays a message "We need to prepare your page properties".
- In the editor, click + Rule, and then enter a name and description in the Create Page Properties Rule dialog box. Click Create.
Your new rule is added at the top of the list of rules in the editor.
- Move the rule into the position you want it evaluated.
To change a rule's position, right-click the rule and use the Move up and Move down items in the popup menu.
Like business rules, the order in which rules appear in the list is important. Rules in the Page Properties editor are evaluated at runtime from top to bottom. So if a property value is applied by the topmost rule in the list, that value might be replaced by a value applied by a rule below it. However, the rules you create always have precedence over the rules written by the dependency developer, so your rules are evaluated after the built-in rules.
- Select the new rule in the list of rules, then click Edit to open the condition builder.
- Create the rule's condition.
You create conditions in the page property editors just like you set rule conditions for fields in forms and tables.
Note:
You cannot use the visual expression builder to create conditions for page property rules. -
In the editor's list of Properties, set values for the page properties that you want to be applied when the condition is met.