Elementor Phone Form Validation

  Рет қаралды 2,747

EZ WP 4U

EZ WP 4U

Күн бұрын

Пікірлер: 34
@purpleboudoir
@purpleboudoir 21 күн бұрын
It took 2 minutes to find out it's just a PHP snippit but it works like a charm so I'm very grateful thank you EZ.
@realbillsmith
@realbillsmith Ай бұрын
Perfect fix to my Elementor form. Needed exactly this to stop phone numbers without area codes. Thank you!
@ezwp4u
@ezwp4u Ай бұрын
Hey! 🙂 You're very welcome! I am so happy to hear this video was able to solve a problem you were facing! 🤩 See you in the next one! ✌🏼
@thewebstylist
@thewebstylist 15 күн бұрын
GENIUS and solved an issue we've had for days!! BIG UPS SIR!
@Bjoerk_Media
@Bjoerk_Media 2 ай бұрын
Great, exactly what I needed. Thanks for making and sharing!
@ezwp4u
@ezwp4u 2 ай бұрын
Hey! 🙂 You're very welcome! I am so happy to hear that this video was exactly what you needed and I was able to help you! 🙏 See you in the next one! ✌🏼
@experiencemedia1148
@experiencemedia1148 2 ай бұрын
Thanks, this is great. Are you able to show how to validate more than one field in the form?
@ezwp4u
@ezwp4u 2 ай бұрын
Hey! 🙂 I would love to do that, do you have any specific fields you would want to see? 🤔
@hannoushy583
@hannoushy583 24 күн бұрын
Thanks, but the website that has the code is down. it gives 403 Forbidden error.
@Bubinikola
@Bubinikola 26 күн бұрын
any idea how to make it work on a landing page? it works on the website, but not on the landing page I'm advertising
@nargisfakhree
@nargisfakhree 3 ай бұрын
Thank you so much you are legend
@ezwp4u
@ezwp4u 3 ай бұрын
Hey! 🙂 You're very welcome! I highly appreciate your warm words - it means a lot to me! 🙏 See you in the next video! ✌🏼
@webqoda
@webqoda Ай бұрын
Great bro it works well but the link you provided for the code that is broken well thankyou....
@ezwp4u
@ezwp4u Ай бұрын
Hey! 🙂 I am sorry to hear that the link is broken. 🙏 This is the code: function validate_phone_number( $field, $record, $ajax_handler ) { if ( ! empty( $field['value'] ) && strlen( $field['value'] ) !== 10 ) { $ajax_handler->add_error( $field['id'], 'Phone number must be exactly 10 digits long.' ); } } add_action( 'elementor_pro/forms/validation/tel', 'validate_phone_number', 10, 3 ); Other then that, I'll fix the link, thank you! See you in the next video! ✌🏼
@habibj
@habibj 4 ай бұрын
Do you know whether there is an email form validation code?
@floralightly
@floralightly Ай бұрын
function validate_email_address($field, $record, $ajax_handler) { // Check if the email field is not empty if (!empty($field['value'])) { // Validate the email format using PHP's built-in filter if (!filter_var($field['value'], FILTER_VALIDATE_EMAIL)) { // Add an error if the email format is invalid $ajax_handler->add_error($field['id'], 'Please enter a valid email address.'); } else { // Extract domain from the email list(, $domain) = explode('@', $field['value']); // Check if the domain has a valid MX record (email server) if (!checkdnsrr($domain, 'MX')) { // Add an error if the domain has no valid MX record $ajax_handler->add_error($field['id'], 'Please enter a valid email address.'); } } } } add_action('elementor_pro/forms/validation/email', 'validate_email_address', 10, 3);
@PranjaliShejul
@PranjaliShejul Ай бұрын
It's not working... Is there a need to add something on the elementor form ?
@Rishivworld2806
@Rishivworld2806 Ай бұрын
I can't find the code
@ezwp4u
@ezwp4u Ай бұрын
Hey! 🙂 You can find the code in the first comment you left, I have pasted the code in the answer ✌🏼
@jl1090
@jl1090 2 ай бұрын
Tried several times it didnt' work. Anoy suggestions.
@ezwp4u
@ezwp4u 2 ай бұрын
Hey! 🙂 I am sorry to hear you have tried several times and it didn't work for you. Could you elaborate what you've tried exactly (including the exact steps) so I could assist you better? 🧐
@Rishivworld2806
@Rishivworld2806 Ай бұрын
Please share code
@ezwp4u
@ezwp4u Ай бұрын
Hey! 🙂 Here is the code: function validate_phone_number( $field, $record, $ajax_handler ) { if ( ! empty( $field['value'] ) && strlen( $field['value'] ) !== 10 ) { $ajax_handler->add_error( $field['id'], 'Phone number must be exactly 10 digits long.' ); } } add_action( 'elementor_pro/forms/validation/tel', 'validate_phone_number', 10, 3 );
@jananibalu6949
@jananibalu6949 2 ай бұрын
Use this code: function validate_phone_number($field, $record, $ajax_handler) { if (!empty($field['value']) && strlen($field['value']) !== 10) { $ajax_handler->add_error($field['id'], 'Phone number must be exactly 10 digits long'); } } add_action('elementor_pro/forms/validation/tel', 'validate_phone_number', 10, 3);
@ezwp4u
@ezwp4u 2 ай бұрын
Hey! 🙂 Yup, this is the code 💪🏻
@HarunShekh-x9o
@HarunShekh-x9o 2 ай бұрын
Link is not working
@ezwp4u
@ezwp4u 2 ай бұрын
Hey! 🙂 I see, here is the code: function validate_phone_number( $field, $record, $ajax_handler ) { if ( ! empty( $field['value'] ) && strlen( $field['value'] ) !== 10 ) { $ajax_handler->add_error( $field['id'], 'Phone number must be exactly 10 digits long.' ); } } add_action( 'elementor_pro/forms/validation/tel', 'validate_phone_number', 10, 3 );
@k.h.a.l.e.d
@k.h.a.l.e.d 5 ай бұрын
i can't find the code !
@ezwp4u
@ezwp4u 5 ай бұрын
Hey! 🙂 You can find the code in the following link - bit.ly/4budTPu
@designmantras
@designmantras 3 ай бұрын
​@@ezwp4u Link is not working
Dynamic Content for Elementor | PHP Form Validation
10:30
WPTuts
Рет қаралды 11 М.
PHP For Beginners, Ep 27 - Introduction to Form Validation
12:51
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 12 МЛН
НИКИТА ПОДСТАВИЛ ДЖОНИ 😡
01:00
HOOOTDOGS
Рет қаралды 3,2 МЛН
ЗНАЛИ? ТОЛЬКО ОАЭ 🤫
00:13
Сам себе сушист
Рет қаралды 3,9 МЛН
JavaScript Form Validation
6:39
Web Dev Simplified
Рет қаралды 907 М.
Flex Grow & Flex Shrink in Elementor
9:41
EZ WP 4U
Рет қаралды 1,2 М.
Add Icon Before Add to Cart Buttons in WooCommerce
5:50
WP Coders Club
Рет қаралды 33
Try This On Your Elementor Forms 👉 Blocking Spam (and Eric Jones)
6:10
How To Add Country Code In Elementor Form (2024)
3:06
How to do Elementor
Рет қаралды 4,1 М.
Bit Forms - The Best Form Plugin?
25:41
EZ WP 4U
Рет қаралды 206
Elementor Form Submissions - Tracking Using GTM!
9:45
EZ WP 4U
Рет қаралды 474
Unleash The Power Of Elementor With This Must-try Feature! 🚀🔥
10:14
Ferdy․com | Ferdy Korpershoek
Рет қаралды 12 М.
World’s strongest WOMAN vs regular GIRLS
00:56
A4
Рет қаралды 12 МЛН