XModPro

How to validate custom control?

Billy Shelton Billy Shelton asked Apr 20, 2016
Active May 3 · Viewed 2213 times
<p>I have created a custom control. &nbsp;It is an image upload control with cropping. &nbsp;I would like to do some&nbsp;validation on the control and connect this to the XMP validation and summary that is happening on the form using the control.</p><p>So for example, if the control had a attribute called required set then I would like to validate that an image was uploaded. &nbsp;If the controls attribute AllowNoCrop='false' &nbsp;I would like to validate that they indeed cropped the image.&nbsp;There are several other combinations of attributes that would require additional validation.</p><p>Is this possible? If so can anyone point me in the right direction? &nbsp;Any documentation or suggestions on how I might accomplish this?</p><p>Thanks a bunch.</p>

1 Answer

Loading answers...