We have a toolset form for our visitors, currently we have a radio button field to ask if the visitor will need parking, if they click yes another radio button field is shown with AM / PM / ALL DAY Options.
We have a total of 12 spaces available per day.
- Is there a way for the form to check if there are spaces available and to show fully booked message
- Is there a way to limit spaces to 2 per day per form field 'Company Name'
So, I'll need more details on your use case before saying if this can be done by Toolset only with the user interface, or if it may need custom code, or if Toolset won't be of bigger help.
I would like to know what post type this form creates? What does the form do?
What do you mean by limiting spaces to 2 per day per field 'Company Name'?
What does the form do? It creates a visitor post and we display a list of the visitor detail in a view, email notifications are sent to the visitor, the person booking the visitor and our team
What do you mean by limiting spaces to 2 per day per field 'Company Name'?
We have a field 'Company Name' that is auto filled from the user profile and need to to limit the number of spaces a company can book per day
Jamal is on vacation. This is Minesh here and I'll take care of this ticket. Hope this is OK.
Can you please give more details aboout spaces. How user will book the spaces? Is spaces is a field added to form, if yes, can you please share problem URL.
We have a total of 12 spaces available per day.
==>
Where and how you store this 12 spaces?
If you can share more information about your flow with page links that will help me to understand your issue as well as please share the access details so that I can review your structure.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Yes perhaps numbered spaces, Space 1, Space 2, Space 3 or their Car registration as we need to collect that.
So if the visitor arrival date is 29/05/2019
It should show if there are spaces available and then they can select AM/PM/ALL DAY
If possible we would also like restrict it to 2 spaces per day per 'Company' (we have a field 'Company' that pulls through the company from the users profile.
The thing is that currently is no way to identify what spaces are booked.
What if you create custom post type Spaces where you should add 12 post, one post for each space and then create one-to-many relationship between post type Spaces and Visitors.
Now, with the page "Book Space" you should display/list only available spaces post (I mean where there is no active child visitor entry available) and with each Space item you should display link to your form "Add Visitor".
No, as the flow here is little bit different. You will display the link to "Book Space" the space for only available spaces and when you click on "Book Space" you should be redirected to your form of "Add Visitor'.
Please note that as there is no such native functionality available it might be possible that at some stage you need to add some custom code.