內容簡介
總結:
Validation Action Add-on for Elementor Forms是一個自訂外掛,允許您為Elementor表單添加伺服器端驗證功能。這些驗證可以在任何其他操作之前運行(例如發送電子郵件、收集提交),輕鬆確保使用者輸入的內容符合您選擇的驗證邏輯。
問題與答案:
1. 什麼是Validation Action Add-on for Elementor Forms?
- Validation Action Add-on for Elementor Forms是一個自訂外掛,可以為您的Elementor表單添加伺服器端驗證功能。
2. 在哪些情況下這些驗證可以運行?
- 這些驗證可以在任何其他操作之前運行,例如發送電子郵件、收集提交,以確保使用者輸入的內容符合您選擇的驗證邏輯。
3. 每個表單字段可以設定多少個驗證動作?
- 您可以為每個表單字段基於其ID指定一個或多個驗證動作。
4. 如果某個驗證動作不成功,使用者將會得到什麼視覺反饋?
- 如果某個驗證動作不成功,使用者將會得到視覺反饋。
5. 可以設定哪些驗證動作?
- 可支援的驗證動作包括:字段的最大長度、最小長度、字段必須以特定值開頭、字段必須以特定值結尾、字段必須包含特定值、字段的內容必須與另一個字段匹配(例如“密碼”和“確認密碼”)。
6. 選擇性字段的驗證只有在什麼情況下運行?
- 選擇性字段的驗證只有在字段不為空時才運行。
外掛標籤
開發者團隊
② 後台搜尋「Form Validation Action Addon for Elementor」→ 直接安裝(推薦)
原文外掛簡介
Validation Action Add-on for Elementor Forms is a custom add-on that allows you to add server-side validation actions to your Elementor
Forms. These validations can run before any other action is processed (e.g. sending an email, collecting submissions)
to easily ensure the user input matches validation logic chosen by you.
You can specify one or multiple validation actions for each one of your form fields based on their ID. Each validation
will run independently from others, and if any action does not succeed, the user will get visual feedback.
Supported actions include:
Maximum length for a field
Minimum length for a field
Maximum amount of words in a field
Minimum amount of words in a field
Field must start with a given value
Field must end with a given value
Field must contain a given value
Content of a field must match content of another field (e.g. “Password” and “Confirm password”)
Content of a field must be before / after a given date
Content of a field must be before / after another field
Field must match a specific regular expression pattern (e.g. email format, phone number)
Validations set for optional fields will only run if the field is not empty.
Custom validation messages can also be configured for each action independently.
