Roles customize what people see in a form, and let you target a specific group in your system based on a value they have for a particular field. You can create roles based on responses to questions (fields) to determine what a member sees as they fill out a form, event registration, etc. When a role is applied to a future step of the form, it creates a conditional logic. Roles also allow you to target people for queries and emails.
Roles can be used in multiple places:
- Audience of a page
- Audience of a piece of content
- Recipient list for an email
- Audience for content within an email
- Audience for fields and categories in a form, event, donation or membership campaign
For example, if users are looking for seminars, you might want to only show them the dates and times of the particular seminars in which they express interest.
NOTE: The options you see will vary depending on the field type you choose.
1. Decide which questions will determine what the member will see later in the form (Since events are form-based, the following information also applies to event registration forms).
Example: You have three seminars that members can attend: Investing for Dummies, Local Day Trips, and Volunteer Opportunities.
- You want the next tab (step) to ONLY show the dates and times for the seminars the member selects as being of interest to him/her on the first tab (step).
- To create a role, you design a question that asks the member to select which seminar he/she is interested in and assign a role to it. The answer to this question will determine what he/she will see later.
2. When you create a field that will drive a role, you must check the box Associate a role with this field.
Not every field will have the option to associate a role with a field.
Only fields set to Normal data storage mode provide the option to associate a role with a field.
3. Choose Role: After you confirm your field values, you will be prompted to add the role. From the Choose Role dropdown, choose --Add New Role--.
4. Role Name: Enter a name for the role. For this example, the role names might be “Seminar – Investing”, “Seminar – Day Trips”, and “Seminar – Volunteer”. You will create the roles one at a time.
5. Role Field Operator: Set the field role operator. Options are: Contains, Equals, Greater Than, Greater Than or Equal to, Less Than, Less Than or Equal to, Not Equal.
The field operator you select depends on the type of data you are collecting and the role you want to create. For this example, we will select: Contains.
6. Role Value: Set the value that members need to select in order to meet the role. For this example, the value for “Seminar – Investing” would be Investing for Dummies.
7. Click Add Role. If you have multiple roles to create, you will go through steps 3-7 again.
8. Once all of the roles are created, a grid with the roles for this field will be shown.
9. When you are finished creating the roles for the field, click Close.
10. Now that the roles are created, you may proceed to the step (tab) where you want to display the role-based categories or fields.
11. Set the Audience for the category or field (depending on how you decide to set it up) to one of the roles created earlier.
For example, you would set the role for one of the categories or fields to “Seminar – Investing”, another to “Seminar – Day Trips”, and another to “Seminar – Volunteer”.
NOTE: When using role-based categories or fields, make sure there is something to see on the page for everyone who will land on that step. You don’t want people moving to a step and seeing a blank page since they do not meet the criteria for the role for any of the items you created on that step.