Best way to have form submit disabled until file selected

12 views
Skip to first unread message

António Ramos

unread,
Apr 10, 2022, 6:10:27 PMApr 10
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 AMApr 11
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