What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How do I remove a field on your pre-created forms?

    Asked by wootabeger on December 03, 2012 at 02:46 AM

    I am using one of your pre-created Contact forms for my client's website. Their business will always stay within the United States so it is not neccessary for their customer to select which country they are from.  In fact they probably do not even need to select the state.

    I believe I found under the properties of that form the ID for those fields.  However, I do not know how to tell the form to make that ID "Not Appear" on the form.

    I was hoping there was an easeir way to delete a field on this form?

    Can you help, thanks.

     

    Craig

  • Profile Image
    JotForm Support

    Answered by Welvin on December 03, 2012 at 04:14 AM

    Hi Craig,

    This are the ID and codes you need to inject to your form to hide Country and State section of your address field;

    #input_4_country, #sublabel_country, #input_4_state, #sublabel_state {

    display: none;

    }

    Country Selection ID: input_4_country

    Country Sub-Label ID: sublabel_country

    State Box ID: input_4_state

    State Sub-Label ID: sublabel_state

     

    Please Take Note:

    -If you will make the Address field as "REQUIRED", you user will get an error that the said field is required. That is because the state and country are just hidden, they aren't totally removed.

    -If you'd like to make the field as required but still need the state and country to be hidden, the best way to do it is to embed your form using full source codes and remove each one by one.

    Thanks

  • Profile Image
    JotForm Support

    Answered by Welvin on December 03, 2012 at 04:17 AM

    Another option is to replace the address field with text boxes and label them one by one by the remaining items such as Address Line 1 and 2, City and Postal/ZIP Codes.

     

    Thanks