• Resolved COMBINEZ

    (@combinez)


    Hi there,
    I have attached the link to the form. We are facing some weird issue.

    Please go to the Step 4 of the form. I have put the International Format Phone Number Field and default country is Faroes Islands.

    Now if we put the CORRECT Faroes Islands number and go to step 5, and then try to submit the form, it just gives error of phone number field and put the “+” sign automatically in between the number and country code.

    Please test yourself. The correct phone number of Faroes Islands is also mentioned on the header of the website. Please test with it on Step 4 and it will go to step 5. But it will not submit the form.

    This issue is specific to Faroes Islands country only. I did submitting to other countries and it works fine. Can you please help with this?

    Thank you!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Nebu John – WPMU DEV Support

    (@wpmudevsupport14)

    Hi @combinez,

    Trust you are doing good, and thank you for bringing this to our notice.

    I was able to replicate the issue on a test website and have already escalated this as a confirmed bug to our developers. A fix for this will be released with one of our upcoming updates.

    Kind Regards,
    Nebu John

    Thread Starter COMBINEZ

    (@combinez)

    I’m waiting here. Please do update me once the issue is fixed. It’s critical as we have Car Rental Booking form working on our website..

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @combinez

    The issue will be fixed with one of upcoming release but I do not have ETA.

    As a workaround for now, please try this patch:

    1. create an empty file with a .php extension (e.g. “forminator-phone-plus-patch.php”)
    2. copy and paste following code into it:

    <?php 
    
    add_action( 'wp_footer', 'wpmudev_phone_number_fix_error', 9999 );
    function wpmudev_phone_number_fix_error() {
    	global $post;
        if ( is_a( $post, 'WP_Post' ) && !has_shortcode($post->post_content, 'forminator_form') ) {
            return;
        }
    	?>
    	<script type="text/javascript">
    	jQuery( document ).ready( function($){
    		$(document).on('forminator:form:submit:failed', function(formData){
    			if( $(formData.target).attr('data-form-id') == '3503' ){
    				var $uid = $(formData.target).attr('data-uid');
    				var search = $('#forminator-field-phone-1_'+$uid).val();
    				setTimeout(function(){
    					$('#forminator-field-phone-1_'+$uid).val(search).trigger('input');
    				},500);
    			}
    		});
    	});
    	</script>
    	<?php
    }

    3. in this line

    if( $(formData.target).attr('data-form-id') == '3503' ){

    replace number 3503 with ID of your form (the same number that you see in form’s shortcode)

    4. save the file and upload it to the “/wp-content/mu-plugins” folder of your site’s WordPress installation on server.

    It should work out of the box.

    Kind regards,
    Adam

    Thread Starter COMBINEZ

    (@combinez)

    Form Link

    I have sent the link above. After using this code as MU-Plugin, Now I chosen the phone number field as International Format.. Now it’s not automatically putting the + sign in between the number like earlier. BUT the still form is not being submitted. It gives the same error. Below is the screenshot of error and above I have sent the link of booking form directly.

    Screenshot

    • This reply was modified 2 years, 4 months ago by COMBINEZ.
    Thread Starter COMBINEZ

    (@combinez)

    Anyone here???

    All of the topics in support have been replied except ONLY this one.

    Plugin Support Williams – WPMU DEV Support

    (@wpmudev-support8)

    Hi @combinez

    It seems you have switched off that number validation on the form now (as I cannot select country). Could you instead share the form with us to test on our end?

    To share form, go to the “Forminator -> Forms” page and use “export” option from the drop-down menu under a little “gear” icon next to the form, then put exported code on pastebin or your Google Drive, Dropbox or similar and post direct link to it in response here.

    Note: this is safe as it will not include any submission data and any payment-related information.

    Kind regards,
    Adam

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @combinez ,

    We haven’t heard from you for over a week now, so it looks like you don’t need our assistance anymore.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Weird issue with International Phone Number Field Format’ is closed to new replies.