Best way to have form submit disabled until file selected

18 views
Skip to first unread message

António Ramos

unread,
Apr 10, 2022, 6:10:27 PM4/10/22
to web...@googlegroups.com, py4web
Hello i have a form with a file to upload.
What is the best web2py way to have the submit button disabled until the user selects a file  to upload?
Regards
António

Dave S

unread,
Apr 11, 2022, 3:58:45 AM4/11/22
to web2py-users
I'd say javascript, since the "required" validator only works after the form is submitted.

/dps
 
Reply all
Reply to author
Forward
0 new messages