Try Now
More in this section

Forums / Developing with Sitefinity / Custom Module Datetime Field Validation

Custom Module Datetime Field Validation

2 posts, 0 answered
  1. Ehsan
    Ehsan avatar
    9 posts
    09 Jan 2015
    19 Oct 2015
    Link to this post

    Hello Everyone!

    I have a requirement of validating two datetime fields of a custom module. I have two fields SartDate and EndDate and the validation should be in the way that the EndDate should always be after StartDate. How can i achieve that? Can i add any validations in the limitation tab of the date picker or how can i compare two fields of a custom module?


  2. Velizar Bishurov
    Velizar Bishurov avatar
    143 posts
    25 Apr 2017
    22 Oct 2015
    Link to this post

    Refer to the following blog post for information how to configure CompareValidations in Sitefinity: http://www.sitefinity.com/blogs/stefani-tacheva-s-blog/2013/03/25/configuring-comparevalidation-for-fieldcontrols-in-sitefinity-modules

    Velizar Bishurov
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
2 posts, 0 answered