Copied to clipboard

Flag this post as spam?

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


  • Tom Fulton 2030 posts 4998 karma points c-trib
    Aug 22, 2011 @ 15:37
    Tom Fulton
    0

    Custom FieldType Validation - on Non-Mandatory Fields

    Hello,

    I am creating a custom field type that I whose input I would like to validate using a 3rd party API.

    I got this working using a ValidationProperty on the control, but I'm noticing this only gets hit when the Field is set to "Mandatory".  This particular field is optional, but if it is filled out, I would like to validate it's input.

    Is there any way I can achieve this?  Regex doesn't really suit my needs as I need to validate with some custom logic, not just checking for characters etc.

    Thanks,
    Tom

Please Sign in or register to post replies

Write your reply to:

Draft