Grouping users by two

By: Viktor D | Asked: 06/18/2023
ForumsCategory: How-toGrouping users by two
Viktor D asked 10 months ago
Hi,  I am working on the website for marriage couple counseling. There are 12 long courses that couples need to go thru. I'm trying to create a registration system for this website.   The website works like this. 
  1. Admin-1 creates an account for a church as a church admin. This first form has a field for a church name. For a different church, it would be Admin-2, and so on. (this is complete)
  2. Admin-1 registers counselors for his church (could be one or more counselors); an email goes out to a counselor to reset the password and log in. (this is complete)
  3. Admin-1 needs to register a couple (him/her) and assign them to a specific counselor in his church. 
I figured out items 1 and 2 but need help figuring out item 3. How do I create one form to register a couple simultaneously (both him and her)? Or maybe there's a different way to register and group a couple together. Thanks Viktor 
1 Answers
Victor Font answered 10 months ago
You could use a repeater or just use two sets of fields, one for each spouse.
Viktor D replied 10 months ago

Yes, I could create two sets of fields or repeater but in "Actions & Notification", I could only have one Register User selected. It doesn't allow me to register two users from one form.

Victor Font replied 10 months ago

Now I get it. You want them to have their own user ids. You need custom code. Use the frm_after_create_entry hook to register the second user using the WordPress user object.

Victor Font replied 10 months ago

Now I get it. You want them to have their own user ids. You need custom code. Use the frm_after_create_entry hook to register the second user using the WordPress user object.

Viktor D replied 10 months ago

Can you provide this code? I would really appreciate it. Thank.

Victor Font replied 10 months ago

Sorry, but no. I can't provide this level of code as a community volunteer. If you'd like us to consider your project, please start with our project application at https://formidable-masterminds.com/project-application/. It's only fair to inform you that we have a considerable wait list and won't be able to even consider adding another project to our schedule until next month.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right