<p>You could use the regex field (not sure if that is available in the lite edition). In that field you could put in regular expressions to evaluate the data entered and force an error if the evaluation doesn't work.
For example you could enter this as the regex patter to prevent a field from accepting special characters and numbers:
^[a-zA-Z\s.-_']+$</p>
<p>Freeform also has ways to run validation from either a module or client side with javascript.</p>
<p>Via a module or plugin:</p>
<p><a href="https://docs.solspace.com/craft/freeform/v3/developer/form-events.html#on-validating-the-form" rel="nofollow noreferrer">https://docs.solspace.com/craft/freeform/v3/developer/form-events.html#on-validating-the-form</a></p>
<p>Via JS:</p>
<p><a href="https://docs.solspace.com/craft/freeform/v3/developer/js-plugin.html#adding-callbacks" rel="nofollow noreferrer">https://docs.solspace.com/craft/freeform/v3/developer/js-plugin.html#adding-callbacks</a></p>

CC BY-SA 4.0
2020-07-01T20:45:12.347Z
2020-07-01T20:45:12.347Z
Johnronomous Bosch
<p>I have been using Solspace Freeform plugin (Lite edition) with Craft 3.
However, I cannot find how to develop validations for the form.
Could you tell me how to develop form validations?
(E.g. postal code, password)</p>

<plugin-freeform><solspace>
Validate fields in Solspace Freeform plugin
# Validate fields in Solspace Freeform plugin

(Asked by: username_0 on 2019-03-27)

I have been using Solspace Freeform plugin (Lite edition) with Craft 3.
However, I cannot find how to develop validations for the form.
Could you tell me how to develop form validations?
(E.g. postal code, password)

**Tags:** plugin-freeform, solspace

---

## 1 answers

### Answer by username_1 on 2020-07-01. Score: 1

You could use the regex field (not sure if that is available in the lite edition). In that field you could put in regular expressions to evaluate the data entered and force an error if the evaluation doesn't work.
For example you could enter this as the regex patter to prevent a field from accepting special characters and numbers:
^[a-zA-Z\s.-\_']+$

Freeform also has ways to run validation from either a module or client side with javascript.

Via a module or plugin:

<https://docs.solspace.com/craft/freeform/v3/developer/form-events.html#on-validating-the-form>

Via JS:

<https://docs.solspace.com/craft/freeform/v3/developer/js-plugin.html#adding-callbacks>


---

