Thank you for your feedback.
As you may know, taxonomies cannot be assigned to users. By design, taxonomies can only be assigned to the default posts, or to any custom post. We overcome this limitation by creating a custom post type(let's say Preferred Agents) that will link to users using the author field. So, each user will be the author of his post(Preferred Agents).
So, when you let users sign up using a Toolset form, you will need a way to let them create their posts. So, each user will have only one "Preferred Agents" post. Then, we can assign a taxonomy(Locations) term to these posts.
Currently, in Toolset, each form can only create one item. A User form can only create one user, and a Post form can only create one Post.
If we want to create a "Preferred Agents" post for a user upon signup, we'll need to create custom code that will hook into the cred_save_form of the signup User form.
Or, we can allow the user to create his "Preferred Agents" post using a Post form. In this case, you will need to hook into the cred_form_validate of the Post form, check how many existing posts are assigned the location that the user has chosen, and if the location has already 3 posts, you can return an error to the user saying that this location can't be added anymore.
https://toolset.com/documentation/programmer-reference/cred-api/#cred_form_validate
Or you can hook into the cred_save_data, check if the location has already 3 posts, and remove it for the newly created post.
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
Check our documentation about both hooks, and you can find examples in the previous tickets, on the forum, using the following scoped searches:
- enlace oculto
- enlace oculto
I hope this helps. Let me know if you have any doubts or questions.