Hi I have a form with the following fields:
-URNumber (Number)
-LabNumber (Number)
-GPFacility (Alpha Numeric String)
This form is used to to query a MySQL database. Each field increases specificity, and as such only one field is necessary. A user could hypothetically submit 1-3 fields. How could you implement form feedback incase all fields are empty?
I could check if its empty onSubmit and set an error below the submit button, however clearing the error text would be messy since Ill have to pass a update function to each field of the form and then reset the error onUpdate. Any suggestions on how to do this in a less messy way?