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](https://snippetclub.com/wp-content/uploads/2022/10/image-1024x517.jpeg)
2. Add a dropdown field
This works with any select fields.
- Dropdown
- Checkbox
- Multiple Choice
![image 8](https://snippetclub.com/wp-content/uploads/2022/10/image-8-1024x662.png)
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](https://snippetclub.com/wp-content/uploads/2022/10/image-9-1024x596.png)