Skip Navigation

[Resolved] Whether to create new User Field group?

This support ticket is created 6 years, 4 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by GamX 6 years, 3 months ago.

Assisted by: Nigel.

Author
Posts
#1134579

Hi, I'm creating a lot of single-field User Forms to present on the front-end... and wonder what the best practice is: when to create a new User Field Group vs using an existing one?

Should I create a new User Field Group for every User Form that I need?

Or is it okay to just add all of my User Fields into one User Field Group then hide all of the fields that I don't need for that particular form?

Or something in between...?

Just to add an example context... I will have 50 online courses, each with 20 User Fields. For each course: 10 forms will have 1 field each. 2 forms will have 2 fields each. And 1 form will have 6 fields.

Currently I am lumping all of my User Fields for one course into one User Field Group. This will give me 50 different User Field Groups total, with 20 fields each. However... if it's a better practice to use a greater number of User Field Groups, please let me know how you suggest I organize them.

Thank you for your advice!

#1134876

Nigel
Supporter

Languages: English (English ) Spanish (Español )

Timezone: Europe/London (GMT+00:00)

Hi there

The only disadvantages to using fewer User Field Groups would be that if you visit the user profile page on the back-end the fields all appear together and not in organised meta-boxes, and when creating the forms and using the auto-generate feature, you have a lot of unwanted fields to turn off. (You are not really hiding them, you are simply not including them in the form.)

I can envisage that there could be a performance disadvantage to more User Field Groups, but I'd have to set up a test site with lots of groups and use Query Monitor to assess whether there were additional queries when rendering the form when using fields from multiple groups.

In any case, the performance impact would likely be very small, and you are leaning towards using less not more groups, so lean away.

#1136327

My issue is resolved now. Thank you!