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 to create 2 text fields in 1 question

    Asked by ormaoz on February 22, 2014 at 01:09 PM

    How can I create 2 text fields in 1 question. like the built-in "Full name" question or "Phone number" question have?

    Page URL:
    http://form.jotform.me/form/40506882179461

    create name phone number
  • Profile Image

    Answered by pinoytech on February 22, 2014 at 04:09 PM

    Hi,

    Thank your for contacting us.

    The only way to achieve that is by using two Text Box fields and use some custom css to hide the label of your 2nd text box field.

    Please take a look at this demo form that I've created.

    http://www.jotformpro.com/form/40526623059958

    Here's how:

    1. Add two Text Box field

    2. Change label alignment from Auto to Left

    3. Form field positioning using Shrinking method. 

    4. Hide label of second text box field using custom css.

    Here's the code the I've injected to my demo form.

    #label_2 {

    display: none;

    }

    #id_2.form-line.form-line-column {

    margin-left: -70px !important;

    }

    If you need further assistance, please let us know.