[ad_1]
[ad_2]
Looking for tips/suggestions on how to better validate form submissions to cut down on spam. Have a few forms that get a lot of spam submissions advertising SEO services or explainer videos or virtual assistants, etc.
Before WP/NinjaForms – in the wayback days when I'd create forms from scratch – I'd write Javascript validation that would set off a submission error if certain conditions were triggered. Some triggers would be:
- Duplicate info in the first/last name fields (eg: FName: "Jane Riggs"; LName: "Jane Riggs")
- email address validation (eg: no "@" or ".com", ".edu" etc.)
- html entered in the comments field
- extra characters in the phone field
What are things I can implement to cut down on advertising submissions?
TIA
[darylb1012](https://www.reddit.com/user/darylb1012/)
You can apply client side validation using JavaScript and server side validation using specific hooks for any form plugins.
I’m sharing link for Ninja and Elementor which help you set up validation. It’s useful if you know how to code.
**Ninja Form:** [https://developer.ninjaforms.com/codex/client-side-field-validation/](https://developer.ninjaforms.com/codex/client-side-field-validation/)
**Elementor From:** [https://developers.elementor.com/docs/hooks/form-validation/](https://developers.elementor.com/docs/hooks/form-validation/)