Open aliu39 opened 1 month ago
We should at least validate input on the backend.
Someone could use the api directly and skip the frontend validation, or just edit the frontend to turn off the validation. So if we want valid data the backend is where it needs to be checked. This will be true for all inputs on any page you work on.
Need to investigate/brainstorm if this is best done on the BE or FE.
This is currently set in a project option POST request, as one string (newline-separated list). Should validate:
Display an appropriate error and help text on the FE. Could make use of the form component's onSubmitFail.