Welcome to Zuora Product Documentation

Explore our rich library of product information

Add the message

Guide to creating a rule that displays a registration success message to newly registered users using a custom component block.

To display a message to end users who have successfully registered, we build our Registered rule for the feature using the user segment we created in the Create a Registered Segment section.

To build our rule, complete the following steps:

  1. Create or navigate to the feature for which you want to display the successful registration message.
  2. Select the circle beneath Registered in the user type selector bar. A blank canvas displays.
  3. Select the User segment title.
  4. Drag the Segment decision node to the rules canvas. The User Segment dialog box displays. Complete this dialog box as follows:
    1. Select the Registered segment from the drop-down menu.
    2. Select the Save button. The Registered segment is added to the rules canvas.
  5. Connect the Page View node to the Registered segment decision node.
  6. Drag the Add to Segment decision node to the rules canvas. The Add to Segment dialog box displays. Complete this dialog box as follows:
    1. Select the Registered segment from the drop-down menu.
    2. Select the Save button. The decision node is added to your rules canvas.
      Once end users have been added to the Registered segment, we know that they are on their first page view and we can display the Registration Success message.
  7. Select the Outcomes segment title from the decision bar.
  8. Select Add Outcome. The Add an Outcome screen displays. Build your outcome as follows:
    1. Enter Registration Successful in the Title text box.
    2. Select the Add a New Form Or Custom Component Block button.
    3. Select the Add button under the Custom Component Block heading. The Custom Component Block dialog box displays.
    4. Enter the message in the text box, formatted as you want it to display. For example, the following illustration shows a message with bold font and different font sizes defined in the Visual editor: Screen-Shot-2021-08-24-at-4.04.05-PM.png
      Note: For this example, we create a generic custom component block. If you prefer, you can use a template component from the Component Library as described in the Custom Variables in Custom Component Blocks topic.
    5. Select the Save button to add the component to your outcome.
    6. Drag the Component Block output above the Article component in the Components section. This ensures that the Registration Successful message displays above the content.
    7. Select Show All Content from the Article Content row.
    8. Select the Save button. The outcome is added to the decision bar.
  9. Drag the Registration Successful outcome to the rules canvas.
  10. Connect the Registered segment to the Registration Successful outcome. The rule is similar to the following: Screen-Shot-2021-08-24-at-4.08.59-PM.png
  11. Complete the rest of your rule for end users who are already registered For example, in the rule illustrated below, we have added a trial that grants three views of content. When the end user is in the trial, they can view the content; when they reach the limit, they encounter a paywall. Screen-Shot-2021-08-24-at-4.10.40-PM.png

When a newly-registered user views their first piece of content, the message displays at the top as illustrated below:

Screen-Shot-2021-08-24-at-4.17.52-PM.png

After the message has displayed, the registered user journey follows the Yes path defined in the rule; in our example, to the trial content views followed by a paywall.