Client Side Field Validations
Currently forms validates data only in the back-end, that is great for security, but I think it should be validated client-side too with JavaScript (Automatically generated based in field type and allows custom validation for each field). This would increase user experience and decrease invalid requests sent to the back-end as well.
Log in to comment and vote
Comments6
Archie
Jun 17, 2024
Thanks again for sharing this suggestion.
This has been implemented.
Please check this Changelog for more details.
https://opnform.featurebase.app/changelog/new-feature-custom-validation
Julien
Feb 6, 2024
Hey thanks for this! For technical reasons since we use different languages in the back-end and in the front-end, it's much easier for us (and safer for users) to do back-end validation. However, we understand how having client-side validation would offer a better experience. What we could do, would be to pre-validate all the field (still on server side, but seamlessly) as they're filled so that user can directly see potential issues. How does that sound?
LawMixer
Feb 6, 2024
I'll give you an example, I want to validate an entry to see if it's a discord user Id. I'm not really sure on how you would do it, so that'll be up to y'all on how you want to do it.
LawMixer
Feb 6, 2024
Yeah, I agree with this. I share the same idea as you! Upvoted!
https://opnform.featurebase.app/p/ability-to-validate-a-response