I'm storing events to be displayed on a calendar with mandatory start and finish dates.
When the end-user enters the event's data in the Content area is there any way that I can validate that the value they've entered into the Start Date is <= Finish Date ?
I've seen that I can create a custom datatype that would handle both the start & finish dates but this isn't ideal.
Hi. You can also add business logic by handling BeforeSave or BeforePublish events and preventing saving or publishing a document that doesn't comply to the rules. Although, personally I'm not aware of any way to show any UI text message to the user about failed validation.
Date Range Datatype
I'm storing events to be displayed on a calendar with mandatory start and finish dates.
When the end-user enters the event's data in the Content area is there any way that I can validate that the value they've entered into the Start Date is <= Finish Date ?
I've seen that I can create a custom datatype that would handle both the start & finish dates but this isn't ideal.
Help appreciated.
Hi. You can also add business logic by handling BeforeSave or BeforePublish events and preventing saving or publishing a document that doesn't comply to the rules. Although, personally I'm not aware of any way to show any UI text message to the user about failed validation.
Thanks,
I hadn't thought about the Before Save/Publish event handlers but if the user can't be presented with a meaningful message then it's somewhat futile.
is working on a reply...