Form validation on file upload button

I am not sure if this is sufficient. RadzenUpload will not upload the file when the user submits the form.

No as the upload is separate from the form submission.

Your current implementation can probably use RadzenCustomValidator and use upload.HasValue for the condition. Then the FormSubmit event won't fire if the validator fails.

1 Like