Skip to content

How can I disabled the submit button if the uploaded file is larger the setted maximum file size? #1359

Discussion options

You must be logged in to vote

Yes, we can add the logic to make the file component ‘required’ based on the value of the radio button.

Step 1: Add a new logic in the file component.

Step 2: And add the action

Step 3: add the max size of the file.

As a result, when the radio button is yes, the file component will be required, the submit button will be disabled and the file size will be as expected.


The sample form json can be referred here:
https://gist.github.com/Josephalexantony-aot/9b49b8f6bd1ba516205254111cbd64de

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@horizontech-ernest
Comment options

Answer selected by abhilash-aot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants