Conditions on st.form

Quite often when working with st.form it would be nice to be able to only press the submit button when a minimum number of arguments have been provided (ideally it would be greyed out until the conditions were met). For example requiring to select one of three models before continuing.

I don’t think this is currently possible to do by other means as the various inputs only evaluate as True once the submit button is selected - therefore a check beforehand can’t take place. Any suggestions for a workaround now would be appreciated.

1 Like