Validating user control

Rated 4.72/5 based on 806 customer reviews

The code for this method is as follows: The code above contains a very simple if statement to check the items value (in my example saying that an error message will be displayed if the item value is set to “Item 2” ..

validating user control-31

validating user control-23

validating user control-68

validating user control-20

You need some link between form and the can write a class to catch these events and make you form inherit this class.

In order for a validator to work you need three moving parts: Validation Method We’ll base this sample on the Custom Editing interface we built in Part 3 and first off we will build ourselves a validation method.

This is technically going to be an object with a Validate method (to which Share Point will pass a value).

Unless there is another reason it won't work (I can't test atm).

No, JS doesn't support inline modifiers at all.

Leave a Reply