The User Self-selection Form extension allows you to display dynamic content based on the user’s selection.
The User Self-selection Form is useful in a variety of cases, such as allowing users to select gender, age, interests, etc. Once the user selects an option, the page will reload and display the relevant content.
Try it Out:
Select gender to see how the content changes:
Creating a user selection form involves three steps:
- Create audiences (groups of users)
- Create the selection form
- Set up different content versions for each audience
1. Creating audiences
- On your WordPress admin page, go to If-So > audiences.
- Type your desired audience name and click “Create a new audience.”
- Repeat this action as necessary to create additional audiences
2. Creating the Selection Form
Use the following shortcode to create a selection form:
[ifso_group_selection type='select' options='Male, Female' default-option='Gender' ajax="yes" button='Go']
You can control the form’s appearance using the following parameters:
Options – Add the names of the audience exactly as you created them in Step 1.
Type=”radio” – This option creates a form with radio buttons instead of a select field.
Button=”text you choose” – Remove this parameter if you don’t want to use a button. Change the parameter value to set the text of the button
ajax=”yes” – add this parameter if you don’t want the page to be reloaded automatically after the users submits their selection.
Example: Radio buttons without a button:
Default-option=”Text you choose” – The value of the parameter will be the default option of the form. This allows users to cancel their selection and view the default content.
3. Setting up Different Versions for Each audience
- Create a new trigger or use one you’ve already set.
- Set the dynamic version condition to: audiences > is > and select one of the audiences created in Step 1.
- Set the content you want to display to users within this audience.
- Does the user’s self-selection carry across all pages of the site?
Yes, once a user self-selects, the selection is carried across all pages of the site. The solution is based on a cookie. If the user deletes the cookie or visits the site using another browser, the selection will not be saved.