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.
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
is working on a reply...