Property ElementValidationErrors
ElementValidationErrors
Gets a dictionary mapping from the FormElement to an array of errors for each form element. Errors on a FieldFormElement will only be included if the element is both visible and editable.
Declaration
public IDictionary<FormElement, IEnumerable<Exception>> ElementValidationErrors { get; }
Property Value
| Type | Description |
|---|---|
| IDictionary<FormElement, IEnumerable<Exception>> | A dictionary mapping from the FormElement to an array of errors for each form element. Errors on a FieldFormElement will only be included if the element is both visible and editable. |
Remarks
An empty dictionary indicates that all attachment elements and visible and editable field form element values are valid. Constraints are expressed by the FormInput and the value of IsRequired of the element. The constraints depend on the type of FormInput. The errors returned for each key is an array of any of the following error types:
- FeatureFormNullNotAllowedException
- FeatureFormIncorrectValueTypeException
- FeatureFormExceedsMaximumAttachmentCountException
- FeatureFormExceedsMaximumDateTimeException
- FeatureFormLessThanMinimumAttachmentCountException
- FeatureFormLessThanMinimumDateTimeException
- FeatureFormExceedsMaximumLengthException
- FeatureFormLessThanMinimumLengthException
- FeatureFormExceedsNumericMaximumException
- FeatureFormLessThanNumericMinimumException
- FeatureFormNotInCodedValueDomainException
- FeatureFormFieldIsRequiredException
This dictionary contains validation errors for attachment elements and visible and editable field form elements only. For other field form elements, use the ValidationErrors property.
See Also
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| .NET | 300.1 |
| .NET Windows | 300.1 |
| .NET Android | 300.1 |
| .NET iOS | 300.1 |