Title: Real Time Validation For Gravity Forms
Author: PluginsCafe
Published: <strong>4 Novembre 2023</strong>
Last modified: 17 Novembre 2026

---

Ricerca i plugin

![](https://ps.w.org/gf-real-time-validation/assets/icon-128x128.png?rev=3144886)

# Real Time Validation For Gravity Forms

 Di [PluginsCafe](https://profiles.wordpress.org/pluginscafe/)

[Scarica](https://downloads.wordpress.org/plugin/gf-real-time-validation.1.0.6.zip)

 * [Dettagli](https://it.wordpress.org/plugins/gf-real-time-validation/#description)
 * [Recensioni](https://it.wordpress.org/plugins/gf-real-time-validation/#reviews)
 *  [Installazione](https://it.wordpress.org/plugins/gf-real-time-validation/#installation)
 * [Sviluppo](https://it.wordpress.org/plugins/gf-real-time-validation/#developers)

 [Supporto](https://wordpress.org/support/plugin/gf-real-time-validation/)

## Descrizione

**Real Time Validation For Gravity Forms** checks every field the moment a user 
leaves it, instead of waiting for the form to be submitted. Mistakes are shown right
below the field, so users fix them on the spot.

The result: fewer failed submissions, faster form completion and cleaner, more accurate
data.

#### ✨ Features

 * **Instant feedback** – errors appear as soon as a field loses focus.
 * **Regular expression validation** – add your own pattern and error message to
   Text and Number fields.
 * **Repeater field support** – works on every row, including rows added with “Add
   Row”. _(New in 1.0.5)_
 * **Per form switch** – turn real time validation on or off for each form.
 * **Custom messages** – uses each field’s custom validation message when set.
 * **Multi-step forms** – works on every page of a multi-page form.
 * **AJAX and non-AJAX** – works in both modes.
 * **Conditional logic** – plays nicely with fields shown or hidden by conditional
   logic.
 * **Multiple forms** – supports several forms on the same page.

#### 🧩 Supported fields

**Standard:** Single Line Text, Paragraph Text, Drop Down, Number, Checkboxes, Radio
Buttons, Image Choice, Multiple Choice

**Advanced:** Name, Date, Time, Phone, Address, Website, Email, Consent, Repeater

**Pricing:** Product, Quantity, Option, Shipping

More fields are coming soon.

#### 🔍 Regular expression validation

Regular expressions are available for **Single Line Text** and **Number** fields.
The same pattern is checked in the browser while typing and again on the server 
when the form is submitted.

**How to set it up**

 1. Open the form editor and select a Single Line Text or Number field.
 2. Go to the **Advanced** tab and check **Enable Real Time Validation**.
 3. Enter your pattern in **Enter RegEx pattern**.
 4. Enter the message to show when the value does not match in **Validation failed 
    message**. If left empty, “Validation Failed.” is shown.

**Pattern format**

 * Write the pattern on its own, for example `^[A-Z]{3}$`.
 * Optionally wrap it in slashes to add flags, for example `/^[a-z]{3}$/i` for a
   case-insensitive match. Supported flags: `i`, `m`, `s`, `u`.
 * A `/` inside the pattern is fine, for example `^\d{2}/\d{2}$`.
 * Use `^` and `$` to match the whole value. Without them the pattern only has to
   match part of it.
 * If the field is not required, an empty value is accepted. The pattern is only
   checked once something is entered.

**Examples**

Copy only the pattern itself, without the surrounding backticks.

 * Phone number: `^(\+?\d{1,4}[\s-]?)?(\(?\d{3,4}\)?[\s-]?)?\d{3}[\s-]?\d{3,4}$`
 * Only letters and spaces: `^[A-Za-z ]+$`
 * Exactly 5 digits (ZIP code): `^\d{5}$`
 * Date as DD/MM/YYYY: `^\d{2}/\d{2}/\d{4}$`
 * Starts with “INV-” (any case): `/^inv-\d+$/i`

#### 📋 Requirements

 * PHP 7.4 or higher
 * Gravity Forms 3.0.0 or higher

#### 🚀 Our other plugins

 * [Alpha Addons for Gravity Forms](https://wordpress.org/plugins/alpha-addons-for-gravity-forms/)
 * [Smart Phone Field for Gravity Forms](https://wordpress.org/plugins/smart-phone-field-for-gravity-forms/)
 * [Smart Phone Field for Fluent Forms](https://wordpress.org/plugins/smart-phone-field-for-wp-forms/)
 * [Smart Phone Field for Contact Form 7](https://wordpress.org/plugins/smart-phone-field-for-wp-forms/)
 * [Smart Phone Field for Elementor Form](https://wordpress.org/plugins/smart-phone-field-for-wp-forms/)
 * [Image Picker for Gravity Forms](https://wordpress.org/plugins/image-choices-for-gravity-forms/)
 * [Range Slider for Gravity Forms](https://wordpress.org/plugins/range-slider-addon-for-gravity-forms/)
 * [Address AutoComplete for Gravity Forms](https://wordpress.org/plugins/gf-google-address-autocomplete/)
 * [Restrict Dates for Gravity Forms](https://wordpress.org/plugins/restrict-dates-add-on-for-gravity-forms/)

## Screenshot

[⌊Enable real time validation from the form settings page.⌉⌊Enable real time validation
from the form settings page.⌉[

Enable real time validation from the form settings page.

[⌊Add your fields to the form, mark them as required and see instant feedback.⌉⌊
Add your fields to the form, mark them as required and see instant feedback.⌉[

Add your fields to the form, mark them as required and see instant feedback.

## Installazione

 1. In your WordPress admin, go to **Plugins  Add New** and search for “Real Time Validation
    For Gravity Forms”.
 2. Click **Install Now**, then **Activate**.
 3. Open a form, go to **Settings  Form Settings** and turn on **Enable Real Time Validation**.
 4. Mark the fields you want validated as **Required**, or add a regular expression
    to Text and Number fields.

## FAQ

### Which fields are validated?

Required fields of the supported types, plus any Text or Number field with a regular
expression enabled.

### Does it work inside the Repeater field?

Yes. From version 1.0.5 every row is validated, including rows added after the form
loads.

### My regular expression does not seem to work. What should I check?

Make sure the pattern is valid and uses `^` and `$` if the whole value must match.
An invalid pattern is ignored, so it never blocks the form. Also note that Number
fields only accept digits while typing.

### Does it replace Gravity Forms’ own validation?

No. It adds instant feedback in the browser. Gravity Forms still validates everything
on submit.

## Recensioni

![](https://secure.gravatar.com/avatar/1c2ca11eaccf99aabba1b3b9cae62b7c54f59c4a2e5d5bf8264c5daa5a0c4184?
s=60&d=retro&r=g)

### 󠀁[Working well in 2024](https://wordpress.org/support/topic/working-well-in-2024/)󠁿

 [zubsero](https://profiles.wordpress.org/zubsero/) 17 Settembre 2024 2 risposte

But is it possible to add a different phone number validation? // Pattern that allows
digits, +, (), -, and spaces $pattern = "/^(\+?\d{1,4}[\s-]?)?(\(?\d{3,4}\)?[\s-]?)?\
d{3}[\s-]?\d{3,4}$/"; So it works with different phone numbers Example of valid 
phone numbers: +44 123 456-7890 +1 (123) 456-7890 (012) 345 6789 494-934-128 123
456 7890

![](https://secure.gravatar.com/avatar/b656c7b05e939bd20c4eafdce9f348a72afb82bd1a9336999223dc190ef4d9fe?
s=60&d=retro&r=g)

### 󠀁[Very helpful plugin](https://wordpress.org/support/topic/very-helpful-plugin-446/)󠁿

 [Shahin Ahmed](https://profiles.wordpress.org/iamshahin/) 19 Marzo 2024

One of the best plugin for Gravity Forms

 [ Leggi tutte le recensioni di 2 ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/)

## Contributi e sviluppo

“Real Time Validation For Gravity Forms” è un software open source. Le persone che
hanno contribuito allo sviluppo di questo plugin sono indicate di seguito.

Collaboratori

 *   [ PluginsCafe ](https://profiles.wordpress.org/pluginscafe/)
 *   [ Kaisar Ahmmed ](https://profiles.wordpress.org/kaisarahmmed/)

“Real Time Validation For Gravity Forms” è stato tradotto in 3 lingue. Grazie a 
[chi traduce](https://translate.wordpress.org/projects/wp-plugins/gf-real-time-validation/contributors)
per il contributo.

[Traduci “Real Time Validation For Gravity Forms” nella tua lingua.](https://translate.wordpress.org/projects/wp-plugins/gf-real-time-validation)

### Ti interessa lo sviluppo?

[Esplora il codice](https://plugins.trac.wordpress.org/browser/gf-real-time-validation/)
segui il [repository SVN](https://plugins.svn.wordpress.org/gf-real-time-validation/),
segui il [log delle modifiche](https://plugins.trac.wordpress.org/log/gf-real-time-validation/)
tramite [RSS](https://plugins.trac.wordpress.org/log/gf-real-time-validation/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.0.6

 * Minor Bug Fix

#### 1.0.5

 * New: Real time validation for fields inside the Repeater field, including newly
   added rows.
 * New: Regular expressions can be written as `/pattern/flags` (supported flags:
   i, m, s, u).
 * Fix: Patterns containing `/` failed on form submit.
 * Fix: Patterns saved with extra spaces, new lines or wrapping backticks never 
   matched.
 * Fix: An invalid regular expression stopped validation in the browser and blocked
   form submission.
 * Fix: An empty pattern on a required field showed a blank error message.
 * Fix: The value “0” skipped the regular expression check on submit.
 * Fix: JavaScript error on Product and Quantity fields using the number input type.

#### 1.0.4

 * New: Support for the “Alpha Addons For Gravity Forms” limit checkbox addon.
 * Fix: Other bug fixes.

#### 1.0.3

 * New: Image Choice and Multiple Choice fields.
 * Fix: Bug fixes.

#### 1.0.2

 * Fix: Email validation message issue.
 * Fix: Bug fixes.

#### 1.0.1

 * New: Regular expression validation for Text and Number fields.
 * New: Custom validation message for regular expressions.
 * Fix: Bug fixes.

#### 1.0

 * Initial release.

## Meta

 *  Versione **1.0.6**
 *  Ultimo aggiornamento **19 ore fa**
 *  Installazioni attive **500+**
 *  Versione WordPress ** 6.2 o superiore **
 *  Testato fino alla versione **7.1.4**
 *  Versione PHP ** 7.4 o superiore **
 *  Lingue
 * [Dutch](https://nl.wordpress.org/plugins/gf-real-time-validation/), [English (US)](https://wordpress.org/plugins/gf-real-time-validation/),
   [French (France)](https://fr.wordpress.org/plugins/gf-real-time-validation/),
   e [Norwegian (Bokmål)](https://nb.wordpress.org/plugins/gf-real-time-validation/).
 *  [Traduci nella tua lingua](https://translate.wordpress.org/projects/wp-plugins/gf-real-time-validation)
 * Tag
 * [gravity forms](https://it.wordpress.org/plugins/tags/gravity-forms/)[real-time](https://it.wordpress.org/plugins/tags/real-time/)
   [validation](https://it.wordpress.org/plugins/tags/validation/)
 *  [Visualizzazione avanzata](https://it.wordpress.org/plugins/gf-real-time-validation/advanced/)

## Valutazioni

 5 su 5 stelle.

 *  [  2 recensioni a 5-stelle     ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/?filter=5)
 *  [  0 recensioni a 4-stelle     ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/?filter=4)
 *  [  0 recensioni a 3-stelle     ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/?filter=3)
 *  [  0 recensioni a 2-stelle     ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/?filter=2)
 *  [  0 recensioni a 1-stelle     ](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/?filter=1)

[La tua recensione](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/#new-post)

[Vedi tutte le recensioni](https://wordpress.org/support/plugin/gf-real-time-validation/reviews/)

## Collaboratori

 *   [ PluginsCafe ](https://profiles.wordpress.org/pluginscafe/)
 *   [ Kaisar Ahmmed ](https://profiles.wordpress.org/kaisarahmmed/)

## Supporto

Problemi risolti negli ultimi due mesi:

     1 su 1

 [Chiedi nel forum di supporto](https://wordpress.org/support/plugin/gf-real-time-validation/)