vendredi 22 novembre 2019

Is there a way to validate that one checkbox is checked in Flask?

I am trying to create a Flask Form that include multiple checkboxes. However, I want to make sure that the user has at least one checkbox checked out of a group of about 30 checkboxes. Is it possible to do in Flask?

This is the Python Code for 3 of the buttons

button1 = BooleanField('button1')
button2 = BooleanField('button2')
button3 = BooleanField('button3')

This is the Jinja2 code for 3 of the buttons


<br>

<br>

<br>



Aucun commentaire:

Enregistrer un commentaire