SQLpage
SQLpage copied to clipboard
Validate form on blur option
What are you building with SQLPage ?
An admin panel with a long form.
What is your problem ? A description of the problem, not the solution you are proposing.
I have some dependent fields in my form that I would like to show only when a given condition in a previous field is met. To do so it's needed to add a WHERE
clause on the dependent field and click the validate
button. I believe clicking on the button is not very user-friendly since we are used to more reactive forms.
What are you currently doing ? Since your solution is not implemented in SQLPage currently, what are you doing instead ?
I wrote a piece of javascript to validate the form on blur and swap the new form html with the previous (so it doesn't trigger a full page reload) when the form data changes.
A clear and concise description of what you want to happen.
It would be nice to have an option in the form component like TRUE as 'validateOnBlur
.
A clear and concise description of any alternative solutions or features you've considered.
I considered adding htmx
to the project and create a new template based on the current form.
Additional context Add any other context or screenshots about the feature request here.