Create a name check sub rule
Create a sub rule to prompt registered users to provide their first name if it is not already available, using a data capture form outcome.
Sub rules are especially useful for managing complex journeys. For more details, see the Simplify User Journeys with Sub Rules section.
To build the data capture form in a sub rule, complete the following steps:
- If necessary, navigate to the feature we used for our Anonymous and Registered user types as follows:
- Navigate to from the main menu.
- Select the Article feature.
- Select the version to update. The rules builder displays.
- Select the circle beneath Registered in the user type selector bar. A blank canvas displays.
- Add a sub rule, as follows:
- Select the Sub Rules segment title from the decision bar.
- Drag the Sub Rule outcome to the rules canvas. The Sub Rule dialog box displays.
- Enter Name Check in the Title text box.
- Select the Save button. A blank sub rule canvas displays.
- Select the User segment title from the decision bar.
- Drag the User Attribute decision node to the sub rule canvas.
The User Attribute dialog box displays.
Complete this dialog box as follows:
- Select First Name (Text) from the User Attribute menu. A further field displays.
- Select Is Empty from the Condition menu.
- Select the Save button. The User Attribute decision node is added to your sub rule canvas. For further information on the User Attribute decision node, see the User topic.
- Add an output option for registered users that have already supplied their first name as follows:
- Select the Sub Rules segment title from the decision bar.
- Drag the Output Option decision node to your sub rule canvas. The Output Option dialog box displays.
- Enter Name Provided in the Title text box.
- Select the Save button. The output option is added to your sub rule canvas.
- Add a data capture form outcome to collect the first name from registered users that have not supplied their first name as follows:
The outcome is added to your sub rule canvas.
- Select the Outcome segment title from the decision bar.
- Select Add Outcome . The Add an Outcome screen displays.
- Enter Data Capture Form in the Title text box.
- Select the Add A New Form Or Custom Component Block button.
- Select the Add button under the Form heading.
- Select the Data Capture radio button under the Type options. The Title text box is pre-filled with Data Capture Form. You can edit this if required.
- Select the Add A User Attribute button. The Add a User Attribute dialog box displays.
- Select the Add button at the end of the First Name row. The First Name user attribute is added to your form.
- Select the Required toggle.
- Select the Save button. The Edit an Outcome screen displays.
- Select the Save button. Your Data Capture Form outcome is added to the decision bar.
- Drag the Data Capture Form outcome to your sub rule canvas.
-
Connect your sub rule as follows: