+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Custom validator on a dynamic content type field

Custom validator on a dynamic content type field

4 posts, 0 answered
  1. Alessandra
    Alessandra avatar
    6 posts
    Registered:
    27 May 2011
    04 Mar 2015
    Link to this post

    Is it possible to add a custom validator to a dynamic content type field?

    Suppose to have a short text field named "Agency Code" which value must be validated on an external database table. How can I do that?

  2. Kaloyan
    Kaloyan avatar
    272 posts
    Registered:
    05 Dec 2016
    09 Mar 2015
    Link to this post
    Hello Alessandra,

    I have just answered you in the support thicket that you have opened. Feel free to share the answer with our community.

    Regards,
    Kaloyan
    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
     
  3. Alessandra
    Alessandra avatar
    6 posts
    Registered:
    27 May 2011
    17 Mar 2015 in reply to Kaloyan
    Link to this post

    Kaloyan answered me that this functionality is not available out of the box.

    Kaloyan suggested to implement a custom solution, that is to subscribe to one of the exposed events for module builder and trigger our custom validation. More detailed information about the available events can be found from the link below:

    Dynamic modules events


  4. Stephen
    Stephen avatar
    2 posts
    Registered:
    24 Jul 2015
    14 Apr
    Link to this post
    I can see how to subscribe to the creating event and validate my field against external data, but how do I get the create/update to fail if it doesn't validate?
4 posts, 0 answered