You can use AvailableValidatorTypesAttribute to specify the validators for element.
[AvailableValidatorTypes(Include = new[] { typeof(RequiredValidator), typeof(IntegerValidator), typeof(PositiveIntegerValidator) })] public class YourElementBlock : InputElementBlockBase { }
I'm upgrading some old forms code to move off of obsoleted methods. I've encountered the following warning message and have found no path to update a form block away from ValidatorTypesToBeExcluded on ValidatableElementBlockBase.
'HiddenEmailBlock.ValidatorTypesToBeExcluded' overrides obsolete member 'ValidatableElementBlockBase.ValidatorTypesToBeExcluded'. Add the Obsolete attribute to 'HiddenEmailBlock.ValidatorTypesToBeExcluded'.
The method in question is:
Any advice on what I need to do to move this functionality to get it current would be greatly appreciated. I can't find any documentation on Forms at all and I don't see this method in a breaking change list anywhere in the updates.