Validation in webpart/widget

Novice User asked on May 22, 2018 18:34

In my widget properties I want to validate a property say "A" based on other property say "B" in the same widget. Property "B" is the path to a document. I want to access that document's Form properties and check to see if a certain field is null/empty and then display the validation accordingly for property "A". How can I achieve this?

Recent Answers


Brenden Kehren answered on May 22, 2018 18:56

You're form control would have to validate that. You could try to add a validator to the property B and compare it to another field but I don't beleive this will work specifically for what you're wanting to do (look up data based on a selection). So I'd suggest creating your own custom form control.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.