Real Time Validation For Gravity Forms

外掛說明

This plugin adds an awesome feature that provides instant feedback and guidance in each field, helps prevent errors, reduces form submission time, and ensures the submission of accurate and complete data. It introduces a dynamic and interactive layer of validation that verifies the data entered by users as they fill out the form in real time.

Features

  • Add Regular expression in text and number only.
  • Ability to turn on/off for each gravity forms.
  • Add validation only on required field.
  • Add custom validation message.
  • Works with multi-step forms.
  • Works with both environment AJAX / NON-AJAX.
  • Works with the Conditional logic of fields.
  • Works with Multiple Forms on one page.
  • Regular expression (New)
  • More features coming…

Works with following fields

  • Single Line Text
  • Paragraph Text
  • Drop Down
  • Number
  • Checkboxes
  • Radio Buttons
  • Image Choice (new)
  • Multiple Choice (new)
  • Name
  • Date
  • Time
  • Phone
  • Address
  • Website
  • Email
  • Product
  • Quantity
  • Option
  • Shipping
  • More are coming soon.

Regular expression

  • You can apply regular expressions exclusively to text fields.
  • Don’t use / before and after of regular expression.

Navigate to the “Advanced” tab of the text field and click on “Enable Real-Time Validation.” This will provide two input boxes: one for entering a regular expression and another for specifying a validation failure message.
Example:

^(+?\d{1,4}[\s-]?)?((?\d{3,4})?[\s-]?)?\d{3}[\s-]?\d{3,4}$

Requirements

  • PHP 7.4
  • Gravity Forms 2.8.0 or higher

螢幕擷圖

  • Enable real time validation from form settings page.
  • Add your fields in form with required and use it.

安裝方式

Installation is fairly straight forward. Install it from the WordPress plugin repository.

使用者評論

2024 年 9 月 17 日 2 則留言
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
閱讀全部 2 則使用者評論

參與者及開發者

以下人員參與了開源軟體〈Real Time Validation For Gravity Forms〉的開發相關工作。

參與者

〈Real Time Validation For Gravity Forms〉外掛目前已有 2 個本地化語言版本。 感謝全部譯者為這個外掛做出的貢獻。

將〈Real Time Validation For Gravity Forms〉外掛本地化為台灣繁體中文版

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

變更記錄

1.0.3

  • Add Image choice and multiple choice field
  • Bug fix

1.0.2

  • Fixed email validation message issue
  • Bug Fix

1.0.1

  • Add regular expression for text and number field
  • validation message for regular expression
  • Bug fix

1.0

  • Initial Release