How do I make the Multiple Text Fields widget a required box like the original Address section?

  • ResumeProducts
    Asked on January 20, 2020 at 6:16 PM
    7. I added an alternative Address section that is more compressed that I'd rather use. How do I make it a required box like the original Address section? (There is no option to do so.)
  • Elton Support Team Lead
    Replied on January 20, 2020 at 9:08 PM

    You can simply right click on the field then click Require. This will require all the boxes in your Multiple Text Fields Widget. Example:

    How do I make the Multiple Text Fields widget a required box like the original Address section? Image 1 Screenshot 20

  • ResumeProducts
    Replied on January 21, 2020 at 4:31 PM

    Okay, I didn't see your response before I deleted it, but thank you. I will keep the original Address section but want to get rid of all the extra spacing between lines.

    But before you tell me I need to add code, several people did on other questions; and whenever I do that, I lose all the boxes, as below:


    1579642231Screen Shot 2020 01 21 at 3 Screenshot 10

  • Elton Support Team Lead
    Replied on January 21, 2020 at 5:45 PM

    Inject this CSS code to your form.

    [data-type="control_address"] .form-address-table td {

        padding: 0;

    }

    Result

    FROM:

    How do I make the Multiple Text Fields widget a required box like the original Address section? Image 1 Screenshot 30

    TO:

    How do I make the Multiple Text Fields widget a required box like the original Address section? Image 2 Screenshot 41

  • ResumeProducts
    Replied on January 21, 2020 at 6:38 PM

    Okay great, that worked! Last question in the address field, I'd like to make the State be a drop-down menu like the country is. Can that be done?

  • Elton Support Team Lead
    Replied on January 21, 2020 at 8:34 PM

    That's possible when you enable American States in the Address properties. It is the only States option supported at the moment.

    How do I make the Multiple Text Fields widget a required box like the original Address section? Image 1 Screenshot 20

  • ResumeProducts
    Replied on January 22, 2020 at 2:13 PM

    But I need both scroll-down options: for States and Countries.

  • KrisLei Jotform Support
    Replied on January 22, 2020 at 4:31 PM

    Unfortunately, it's not possible to show simultaneously both categories on that widget. Alternatively, while the address widget is set to have the States visible, you can add a Dropdown field and enable the Predefined Options to 'Countries'.

    1.1579728607country Screenshot 10

    2.1579728637country2 Screenshot 21

    I hope this helps. Let us know if it didn't meet your requirements.

  • ResumeProducts
    Replied on January 23, 2020 at 1:51 PM

    I did what you said, but it comes up as a separate section saying "Type a question" and even though I selected countries, nothing comes up in the dropdown. :(

  • KrisLei Jotform Support
    Replied on January 23, 2020 at 3:44 PM

    It is a workaround to meet your requirements and yes, it is a separate element from the Address field since it's not possible to show the countries and states at the same time. Adding a Dropdown field will show the list of countries on your form while on the address field will show the list of states.

    The list of countries will auto-populate on preview mode.

    1579811861country Screenshot 10

    To verify, is the form will be used internationally? If so, the list of states on the address field is only applicable to the US, and this can't be selected if the responder is from a different country. So I think the best approach is to show the list of the countries on the address field instead of the states.

    Let us know if you need further assistance.

  • ResumeProducts
    Replied on January 23, 2020 at 5:04 PM

    It will be used mostly in the US but also in other countries such as Australia and Canada. Can the State dropdown include "Other" so it can work for everyone?

    Otherwise if someone puts in a dash in the State box, I tried it in Preview and it doesn't come up "This field is required." So I changed the title to "State (if not USA, put a "-"). I believe this will work. Thoughts?

  • Elton Support Team Lead
    Replied on January 23, 2020 at 6:16 PM

    State dropdown in the Address field can't be edited at the moment. Your current setup is I think the only workaround we could offer and that should work since any value can be entered in the State textbox.

  • ResumeProducts
    Replied on January 23, 2020 at 6:18 PM

    Awesome, then this is resolved. Thank you!