[SOLVED] Custom datatype validation stuck in block...
# help-with-umbraco
d
Hi all, I created a simple custom picker datatype. It works great, except when used in an (inline) blocklist. If the property is mandatory, but not set, it triggers the validation, but when picking a value after that, the validation doesn't update anymore and I am unable to save and publish. Has anybody tackled this before and can give me a pointer?
It turns out you can fix this by appending the following snippet of html at the end of your property editor html view:
Copy code
html
<ng-form name="myEditorForm">
    <input type="hidden" name="modelValue" ng-model="model.value" ng-required="model.validation.mandatory" />
</ng-form>
3 Views