开发者 | data8 |
---|---|
更新时间 | 2024年4月2日 23:10 |
PHP版本: | 4.5 及以上 |
WordPress版本: | 6.3 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/wp-content/plugins/data8-validation-for-contact-form-7
directoryOn the plugin configuration page, enable the Email validation option by selecting a level at which to validate email fields. Fields of type 'email' in Gravity Forms and Contact Form 7 will be automatically validated. To gain further control over individual elements, the level of validation can be overridden as follows: In Contact Form 7, the email validation level can be changed using the level option, e.g. [email* your-email level:Address] In Gravity Forms, the email validation level can be changed by adding a "d8level_Address" CSS class to the Custom CSS Class setting. The following are valid email validation levels:
Yes! Simply enable the Phone validation option on the plugin configuration page and the appropriate validation will be applied to any 'tel' fields. The service includes both UK landline and mobile validation. You will need credits for the Data8 Phone Validation service to use this option.
The Phone Validation service will validate the entered number using the rules appropriate for the country indicated in the telephone number using standard international dialling rules. For example, if a number is entered with a "+1" or "001" prefix, it will be validated as a US number, or if "+44" or "0044" is used it will be validated as a UK number. If no international prefix is specified, it will be validated according to the rules for a default country. The default is United Kingdom (GB), however this can be changed globally using the Default Country Code option under the Phone Validation section, or set individually on each field as follows: In Gravity Forms, add the "d8country_XX" CSS class to the Custom CSS Class setting, e.g. d8country_US In Contact Form 7, use the "country" tag, e.g.: [tel* your-tel country:US]