how i can build quick field like phone number merging two text fileds

  • karthik_nitw2004
    Asked on May 9, 2016 at 1:57 AM

     

     

     

    how i can build quick field like phone number merging two text fileds Image 1 Screenshot 20

    I need two text fields combined in the above manner and I have to change the lengths of the text fields as per my requirement.

  • beril JotForm UI Developer
    Replied on May 9, 2016 at 4:48 AM

    To solve that issue quickly, you can add the phone number field no your form and you can change the labels and sub labels as you see below:

    how i can build quick field like phone number merging two text fileds Image 1 Screenshot 30

    You can also change the width of your text field by adding the CSS code below easily from the designer.

    #input_25_phone {

        width : 200px !important;

    }

    #input_25_area {

        width : 200px !important;

    }

    how i can build quick field like phone number merging two text fileds Image 2 Screenshot 41

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

  • karthik_nitw2004
    Replied on May 12, 2016 at 9:53 AM

    Can you please explain me how to restrict the filed string lengths for eg. say my phone number should have exactly 10 charecters and my country code should be min of 1 digit and max of 3 digits in a  filed like above.

  • David JotForm Support Manager
    Replied on May 12, 2016 at 11:00 AM

    To set a max of allowed characters , you need to use a text-box field, and set the max size. Looks like you have already done it:

    how i can build quick field like phone number merging two text fileds Image 1 Screenshot 20