Hi!
For my applications i’ve used the calendar component where users can submit a renter for certain times. I’ve some troubles with not allowing entries where the arrival date is after the leave date (so negative dates).
I’ve now input a custom workflow that should check this and delete a record and display an error message if the rule has been broken, but it seems the people who’re stresstesting the application before launching to 200 personal users end of the week keep managing to do this.
It’s setup as follows:
A list collection with the add and edit function above a calendar collection showcasing the entries visually:
The add form with the custom workflow hooked up:
workflow with: arrival date is before leave date → else → show error → delete record
As you can see, the workflow steps in after entry, and I would ideally want to display an error message that the dates are not proper in the form submission.
For both date entries I’ve selected “today or later”
But for the second entry, leave date, I want to input “Arrival date or later”
Is there a better way to go about it than how I sett it up now?
It works most of the time, but users are still abled to work around the workflow somehow and create records with negative dates.
Please let me know! Thanks