Automatically assign a participant group based on age, gender, and distance

By: George Birken | Asked: 02/08/2026
ForumsCategory: General questionsAutomatically assign a participant group based on age, gender, and distance
George BirkenGeorge Birken asked 4 weeks ago

I need to automatically determine and assign a participant’s group (category) based on their year of birth, gender, and selected distance when a form is submitted.
The group should be saved with the entry so it can be seen by organizers and participants in entry lists and views, not calculated only at display time.
What is the recommended way in Formidable Forms to automatically assign and store such a calculated group for each participant?

2 Answers
Victor Font Staff answered 4 weeks ago

Not knowing the your complete requirements or process flow, from what you described it's likely a custom code requirement, either jQuery or PHP through a WordPress hook depending on where in the process you want the result calculated.

George BirkenGeorge Birken
replied 4 weeks ago

I have a form with repeatable fields for registering participants in a cycling competition.
The participants are then displayed in a View on the competition page.

I need each participant to be automatically assigned to a group based on their gender, age, and selected distance.

Rob LeVineRob LeVine Staff answered 4 weeks ago

The way I read it, you can create either a hidden field or a field only viewable by an admin to store the value and use the frm_after_create_entry hook to calculate the value and store it in that hidden field.

George BirkenGeorge Birken
replied 4 weeks ago

I have a form with repeatable fields for registering participants in a cycling competition.
The participants are then displayed in a View on the competition page.

I need each participant to be automatically assigned to a group based on their gender, age, and selected distance.

Rob LeVineRob LeVine
Staff replied 4 weeks ago

I stick by my answer. Because of the repeater, the code is moderately difficult, though definitely doable.

George BirkenGeorge Birken
replied 4 weeks ago

Could you recommend how to do it?

Victor Font
Staff replied 4 weeks ago

George, Rob did recommend how to do it. You need to write custom code. Nobody can tell you how to do this without accessing your system. If you need a developer's help, please visit https://formidable-masterminds.com/developers-directory/.

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