Validating user control
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” ..
You need some link between form and the usercontrol..you 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.