To be more clear, I have a request from my help desk to provide users a form to check out mobile hotspots. The desk has 5 available hotspots that can be checked out. I have created the form with calendar view and have a dropdown with the five hotspots. A user can select a hotspot from the dropdown, select a date interval and then submit the form to show the date interval on the calendar. What I would like is to prevent a user from selecting a hotspot, say Hotspot 1, from being double booked. I am looking for some type of validation to prevent them from checking out a hotspot if that particular option has already been added to the calendar for their new checkout dates. Is this something that can be done using the Rules for Field Definitions macro?
Any help is appreciated and thank you for your time.
-Curtis
Yes, this is exactly what ConfiForms Field Definition Rules with validate action are designed for. Have a look at this tutorial on our wiki - https://wiki.vertuna.com/display/CONFIFORMS/Using+CalendarView+with+date+time+intervals+with+custom+validation+for+intervals
Hey Alex, thanks for the response. This works wonderfully for prevent overlapping times, however, I would like to set it up so that depending on the option in the dropdown, the dates could overlap. I just dont want them to overlap if the user picks the same option in the dropdown as another entry already in the calendar.
Im thinking about using the [entry.myfield.id] but not entirely sure how to go about it.
As always I appreciate your assistance!
-Curtis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You just need to make this rule to be conditionally executed, basically not executed when the a certain option in the dropdown is selected
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was trying myfield.id:[entry.myfield.id] which wasn't working. It was as simple as removing the .id from both sides. Thanks Alex!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.