Jump to content

Inline Form Fields

Recommended Posts

Hello!

Is there a way to place two or more fields on the same line within a form? I tried using the following code but have been unsuccessful and need to do this for multiple sections of my form.


  .form-item.field.email, .form-item.field.text {
   display: inline-block;
   min-width: 48.8%;
 }

 .form-item.field.email {
   margin-right: 1.4%;
 }

Fields that need to be formatted are:Line One: Name (first), Name (last), Birthday this line needs to be duplicated, as more than one name will be added Line Two: Departure City, Arrival Date, Departure Date Line Three: Email Address, Phone Number

Hoping someone can help!

Link to comment
  • Replies 5
  • Views 2.3k
  • Created
  • Last Reply

The solution above was for a specific form with a specific layout. You'll need to provide the community with a working link to the form on your website in order to see the issue. If your site isn't live yet, please set a site password and tell us what it is, so that we can view it.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

thanks @Paul2009 Here's the page, I'm just looking to make some of the form fields more in-line. Here's my unfinished site:https://tan-pepper-zgje.squarespace.com/upcoming-weddings

and here is the form that my client wants me to match:https://www.landowtravel.com/Weddings/JAMIE-%26-MATTHEW'S-WEDDING

Thank you!!!

Link to comment

hey @Paul2009 ! Is there any way you could help me with this and a button outline fill question I have? This is what I'm trying to achieve in squarespace forms. Also I'm wondering if SS has conditional logic on their forms, or if it's just easier to embed my jotform? I'd love to have a "how many guests" question with if/then logic and subsequent additional name/birthday fields. Do you think this is possible with SS? Either way I'd love to know how to manipulate the sections into inline block format. Thanks for any info you have!!

See what I am hoping to achieve below :alt text

screen-shot-2019-09-06-at-65343-pm.png.9fd9043ae2b4ad3933eaa74036d1e6aa.png

Link to comment

The link is password protected so I couldn't view it.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Conditional logic isn't available on Squarespace forms so it's possibly easier to use a third party forms service. Separate code can be used to ask how many guests and hide fields accordingly, but it would need to be recoded each time you make changes.

About me: I've been a SQSP User for 18 yrs. I was invited to join the Circle when it launched in 2016. I have been a Circle Leader since 2017. I don't work for Squarespace. I value honesty, transparency, diversity and good design ♥.
Work: I founded and run SF.DIGITAL, building Squarespace Extensions to supercharge your commerce website. 
Content: Views and opinions are my own. Links in my posts may refer to SF.DIGITAL products or may be affiliate links.
Forum advice is free. You can thank me by clicking one of the feedback emojis below. Coffee is optional.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.