klugerama / webmin-dnsmasq

A Webmin module for managing dnsmasq
6 stars 1 forks source link

Custom validation failures don't show up when fixing errors from error page #24

Closed klugerama closed 1 year ago

klugerama commented 1 year ago

The current implementation simply takes the user to the relevant page and submits the form, which triggers client-side validation. However, there are some values that are validated server-side (user, group, network interface, file/dir/path) so simply submitting the form automatically doesn't do anything useful. The logic when clicking the error on the error page should go to the corresponding page and input field and simply show the validation error, not submit the form.