Show / Hide Radio Button

By: Javier Iusim | Asked: 02/08/2023
ForumsCategory: How-toShow / Hide Radio Button
Javier Iusim asked 1 year ago
I am building a registration form for classes. I can have up to 20 participants in each class but no more than 4 children who are under 9 years old. The idea is that the user first fills in the Date of birth. In the past when I did not have the under 9 limitations I used [frm-condition source=frm-stats id=8 type=count 8_contains="Session 1" less_than=20][input opt=2][/frm-condition] To show or hide the radio box of the class that reached 20 participants. How should I proceed with the new setup? Thanks, Guy
1 Answers
Bobby Clapp answered 1 year ago
Maybe calculate the age and put that into a hidden field and then use the frm cond that way? https://formidableforms.com/knowledgebase/field-calculations/#kb-calculate-a-users-age
Javier Iusim replied 1 year ago

<p>Thank you for your answer. Let's say that I have 8 participants registered, 4 are 8 years old and 4 are older than 9. I still have 12 spots available in general, but none for kids younger than 9. To filter by the total of registered participants I can filter using : [frm-condition source=frm-stats id=8 type=count 8_contains="Session 1" less_than=20][input opt=2][/frm-condition] Can I add AND to this filter? can I nest conditions? I will need to check 2 fields id=8 less than 20 and id=x (entries that are marked as kids under 9) less than 4.</p>

Bobby Clapp replied 1 year ago

And is not an accepted parameter, but you can nest shortcodes. Give it a shot.

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