The plugin is a single database, so it would not be a separate database, but it can work like one with the proper setup.
You can do these things, it will require the skills of a developer to write the custom code you will need.
I have an article that provides some simple ideas on using the plugin with WP Users, but not the exact thing you are asking about. It is possible to control which fields are used based on the user’s role if you write some custom code that changes how the shortcodes work.
Using Participants Database with WordPress Users
“Multiple Databases” with Participants Database
Thread Starter
ranone
(@ranone)
@xnau thanks a lot for the answer!
I am working on following this resource:
https://xnau.com/using-participants-database-with-wordpress-users/
I want to know if I have the ability to assign a default value directly into the PDb_User_List_Shortcodes class (more specifically in the shortcode function) for a hidden field…
I have also seen this documentation:
https://xnau.com/setting-the-default-value-of-a-field-in-a-custom-template/
But for hidden fields it doesn’t work because they are inside the print_form_head () function…
Can you help me? 🙂
I can help…your question brings up something I’ve been working on and haven’t gotten into the plugin yet: the ability to set the value of a hidden field directly from the shortcode.
So, until that feature is in Participants Database, I posted a demonstration plugin you can use to implement this feature.
The way this works is you now can define a hidden dynamic field with a default value of “shortcode->user_role” which will pick up the value in the “user_role” attribute of the signup shortcode.
Take a look at this gist which has a demonstration plugin you can download and use. The instructions for using it are in the comments below the code.
https://gist.github.com/xnau/400879e4403ed54ac1e656eb8a923ebd
How to Install a WordPress Plugin from a Gist
Thread Starter
ranone
(@ranone)
Thanks @xnau, just great!!
Good day! 🙂