Select all checkbox inside a st.form

How can one apply a “select all” checkbox for st.checkbox?

I’d like to group certain checkbox into group A and have a “select all” check box for Group A inside a st.form.

Then a different select all :ballot_box_with_check: for Group B inside the same st.form.

I can do it outside a form but it doesn’t do it inside a form until I hit st.submit

The values of widgets inside a form are not available to your python code until the submit button is pressed.

1 Like

Yea I ended finding all the constraints for forms. Thanks for the response.

Will this ever be in a release? It would be awesome if values can be referenced in forms.

In that case widgets inside and outside a form would behave in the exact same way and forms would be perfectly useless. What would be the point?