CM Registration (CMREG) - Extra - Creating Role Specific Registration Forms
Creating Role Specific Registration Forms
Only Guest Will See Form
The registration form will only appear to guests (non-logged-in users). If a logged-in user accesses the page, they will not see the form.
You can set role-specific fields in the Example Form. This will support use cases in which you want to allow each role different access permissions and also ask for different information upon registering.
For instance, users with the role of Subscribers may be obliged to provide a phone number, while those who are Authors will have to choose their areas of expertise from a list.
Using Shortcodes for the Registration Form
Using a shortcode you can create your role specific registration forms.
[cmreg-registration-form] - shortcode displays registration form.
Make sure you use the role slug and not the role label!!
Control Which Fields Appear in the Form
You can set which roles have access to each field in the form. To configure this, navigate through CM Registration Pro → Profile Fields (to know more about this function, refer to our guide on Adding Custom Fields).
While editing any field, refer to the item " Restrict to Roles" and select which kinds of users may or may not have access to that field, as shown below.
Only roles marked with ✓ will have access to that specific field.