I have created a custom form element (FileUpload). In this FileUpload I assigned some validation (content type, file size). If I enable the validation and push the apply button, the changes are gone after the submit.

How can we solve this kind of issue?

Before saving the form: enter image description here

After saving the form: enter image description here


Check your model behind the control. Does it inherit Input to store the validators?

enter image description here

Your item should have a section to store the validation settings.

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.