Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Chris Clarke 22 posts 43 karma points
    Oct 22, 2011 @ 22:30
    Chris Clarke
    0

    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.

  • Rodion Novoselov 694 posts 859 karma points
    Oct 24, 2011 @ 23:03
    Rodion Novoselov
    0

    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.

  • Chris Clarke 22 posts 43 karma points
    Oct 25, 2011 @ 01:46
    Chris Clarke
    0

    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.

Please Sign in or register to post replies

Write your reply to:

Draft