Limiting drop down selections per user

By: Jerry Teo | Asked: 09/08/2022
ForumsCategory: How-toLimiting drop down selections per user
Jerry Teo asked 2 years ago
Hi all, Hope someone will be able to help or point me in the right direction? I have 2 fields on my form Location and Time - Both are separate drop down fields. Am getting users to select these fields and displaying them with views.   Is there a way to restrict the number of submissions per user? example: Location A + 8:30am (only 3 users can select Location A and the 8:30am timeslot) After 3 users have selected the same combination, it should no longer be available or greyed out. Hope this makes sense?   Thanks very much in advance.
1 Answers
Bobby Clapp answered 2 years ago
Jerry Teo replied 2 years ago

Hi Bobby,
Thanks very much for taking the time to reply mate. much appreciated.

It's a little more complicated than that.
on the website we have 2 roles - operators and users

Operators they can book a location and time slot.
Then users can dynamically search the timeslot booked by the operators.

However to avoid congestion per location and timeslot = would be best to limit the number of operators that can be at that location at that time 🙂

hope this makes sense.

Bobby Clapp replied 2 years ago

In that regard it's going to require some code. Here is the example you would need to work with:

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