More in this section
Forums / Developing with Sitefinity / Custom Module Datetime Field Validation

Custom Module Datetime Field Validation

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Ehsan
    Ehsan avatar
    9 posts
    Registered:
    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
    Registered:
    18 Sep 2017
    22 Oct 2015
    Link to this post
    Hello,

    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

    Regards,
    Velizar Bishurov
    Telerik
     
    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