How to perform file validation on submit button ?

Certified Senior Developer

I want to perform this validation after clicking on submit button.

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Lead Developer
    in reply to kavitar0003
    I want to show the validation message through submit button.

    form-level and section-level validation messages can be shown on Submit click pretty easily using a!validaitonMessages(), which is very useful in many situations. 

    However as Stefan already pointed out, there is no officially supported way to perform File Size validation outside of the File Upload Field.  And honestly something like this where a user might be required to select and wait for the upload to complete for a replacement file, that seems like the sort of use case where they probably shouldn't be forced to wait until Submit time anyway.

Children
No Data