How to remove the Area Code on phone number and country entry from the Address field

  • GrahamBuck
    Asked on April 27, 2016 at 4:51 AM
    have not worked out yet how to delete the Mobile Country Code, but that is my next target to work it out, I do not wish the Country code to be displayed, as my forms will only be used in Australia
  • beril JotForm UI Developer
    Replied on April 27, 2016 at 6:54 AM

    You can remove the area code by adding the CSS code below:

     

    #input_39_area {

        display : none !important;

    }

    #sublabel_area {

        display : none !important;

    }

    .phone-separate {

        display : none !important;

    }

     

    However, at that time it will also disable sublabel of your home phone field. Because, sublabel_area and phone-separate do not have a unique ID. To solve that issue, I suggest you to use a basic text field your mobile number field instead of adding CSS code.

    How to remove the Area Code on phone number and country entry from the Address field Image 1 Screenshot 20

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

  • Boris
    Replied on April 27, 2016 at 6:56 AM

    I believe you are referring to the Country part of your Address field, is this correct?

    If so, you can easily control which parts of the Address you want included or excluded, by clicking on your Address field, and then selecting the options from the toolbar button named Fields:

    How to remove the Area Code on phone number and country entry from the Address field Image 1 Screenshot 20

    You can simply un-tick the Country option and click on OK, and your form will no longer ask for Country in this Address field.

    If you need any further assistance, or if I have misunderstood what you wanted to achieve, please let us know and we will be happy to help.

  • GrahamBuck
    Replied on April 27, 2016 at 7:44 PM
    Thank you very helpful and easily fixed. Good instructions and easy to change.
    Your help is very much appreciated.

    Graham Buck

    ...
  • Mike_G JotForm Support
    Replied on April 28, 2016 at 1:38 AM

    On behalf of my colleagues who helped you with your concern, you are most welcome. Please feel free to contact us anytime you have questions or concerns.

    Thank you.