Limiting Fluent Form dropdown by max count and date

tdrayson

One of the SnippetClub members requested a snippet to be able to show a list of course dates in a Fluent Form dropdown and being able to only show dates that had not reached the max attendees count. As well as a date to stop showing them after.

This solution requires editing your course dates via the snippet.

1. Create a new blank form

image

2. Add a dropdown field

This works with any select fields.

  • Dropdown
  • Checkbox
  • Multiple Choice
image 8

3. Set the field name attribute

We need to change the name attribute to something unique. In this case, we’re using course_dates.

image 9

4. Adding the code

Members content only

Become a SnippetClub member to gain instant access to this tutorial plus tons more premium content.

Already a member? Log in below.

Login Form

👋🏻 Weekly Tutorial Digest

I send out a weekly newsletter with links to new tutorials written in the last week, you can subscribe below.

Newsletter

🔒I won't send you spam, I promise