Pre-select the User Role When Using the Shortcode With Role Parameter
-
Hello,
I’ve created a Register form with “Select (User Role)” field type in it and I would expect, that when I use the shortcode [wppb-register role=”author”] the respective role will be pre-selected. It is not and in fact it seems, that the role set in the shortcode overrides whatever is selected in the User Role selector field in the form.
Not sure wheather it’s the intended behaviour, but it’s at least a bit confusing. Is it possible to use a Select User Role field and change the pre-selected role using some parameter?
Use case: there are 2 types of users to register, Landlord and Tenant, each one has it’s own dedicated page to register. I need to pre-select the respective user for each page (but still keep the option to change it, if a user decides so).
Thaks for your response
The topic ‘Pre-select the User Role When Using the Shortcode With Role Parameter’ is closed to new replies.