Support » Plugin: Country & Phone Field Contact Form 7 » Unable to make country and code fields mandatory.

  • sidraaleem12

    (@sidraaleem12)


    I want to make both country and phone number field compulsory in the form. I have checked the required field for both these options. However, if I do not add anything in these two fields the forms get submitted successfully.

    [countrytext* countrytext-606 placeholder “Country”]
    </label>
    <label>Phone<span style=”color:red;”>*</span>
    [phonetext* phonetext-201 ]
    </label>

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @sidraaleem12
    Thank you for using this plugin.
    The required validation is working fine. Please find the attached screenshot.
    https://prnt.sc/qb2j8z
    Kindly discuss this with your web-developer. Might be contact form 7 validation conflict with other JavaScripts.
    If plugin is working fine for you. Kindly share your reviews.

    Regards
    Narinder

    I am facing the same problem on my website.
    The phone number drop-down field has been marked required but still the form is being submitted without taking phone number

    Hi @narinderbisht,
    Thank you for this great plugin.
    I’m facing the same issue.
    When I enable international dial code the form is sent even when no phone number was entered.
    When disabled the form validates OK.
    Thanks,
    Gal.

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hi @montagal, @jay5164

    Thank you for using this plugin. As you know the empty field validation will work only when the field value is totally empty. The dialing code is already added to the input field. So the empty field validation will not work. You have to add additional min-length or max-length validation of contact form 7. It has mentioned in the plugin FAQ section.

    I hope it will work for you. Kindly share your reviews.

    Regards
    Narinder.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.