Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to use Confiforms Calendar view with dropdown to limit a user's options?

Curtis Freudigmann
Contributor
May 20, 2019

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

1 answer

1 accepted

0 votes
Answer accepted
Alex Medved _ConfiForms_
Community Champion
May 21, 2019

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

Curtis Freudigmann
Contributor
May 21, 2019

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

Alex Medved _ConfiForms_
Community Champion
May 21, 2019

You just need to make this rule to be conditionally executed, basically not executed when the a certain option in the dropdown is selected

Curtis Freudigmann
Contributor
May 22, 2019

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!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events