Is there a way to implement a validation in WTFforms that enforces the fact that at least one of the fields is required?
For example, I have two StringFields and I want to make sure the user writes something in at least one of the fields before clicking on "submit".
field1 = StringField('Field 1', validators=[???])
field2 = StringField('Field 2', validators=[???])
What should I write in place of the ???? InputRequired() in this case wouldn't do the job as I need to assign it to one of the fields or to both. How can I do that?