Jump to content

how to customize contact form

Go to solution Solved by tuanphan,

Recommended Posts

Add to Design > Custom CSS

/* Contact form */
.form-wrapper .field-list .field .field-element {
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}
.form-wrapper .field-list .field .field-element:hover {
    background: white !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • Solution
9 hours ago, lion_the_el said:

Hello thanks, that does work great but when I enter anything in the form fields you can't see what you have written. Is there anyway to change that, even with a font colour change because other wise its perfect.

Try new code

/* Contact form */
.form-wrapper .field-list .field .field-element {
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: gray !important;
}
.form-wrapper .field-list .field .field-element:hover {
    background: white !important;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 years later...
On 4/24/2021 at 10:59 PM, tuanphan said:

Try new code

/* Contact form */
.form-wrapper .field-list .field .field-element {
    background: transparent !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: gray !important;
}
.form-wrapper .field-list .field .field-element:hover {
    background: white !important;
}

 

Did something just recently update with Squarespace for the form? I used this code and changed some of it around yesterday (see below for what I used) and it worked perfectly! I looked at my website today and everything reverted back. Do you know of any reason why this would be? 

The only thing that DOES seem to be working still is the padding/margins I did on the form button.

https://www.valiscosupply.com/contact

/* Contact form */
.form-wrapper .field-list .field .field-element {
    background: #F5F4F0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: #000000 !important;
  margin-top: 15px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

/* form input size */
.form-wrapper .field-list .field .caption .field-element {
    font-size: 14px !important;
}
/* form button */
input.button.sqs-system-button.sqs-editable-button {
    padding-left: 3em !important;
  padding-right: 3em !important;
  padding-top: 1em !important;
  padding-bottom: 1em !important;
  margin-top: 10px;
}

***** EDIT ******

I figured out the issue from another post. It looks like Squarespace is updating the form to other "naming conventions" (not sure what they're officially called, newbie here) but I was able to fix it with these changes if it helps anyone else.

/* Contact form */
.form-wrapper .react-form-contents .field-list .form-item { input, text area, select, textarea {
    background: #F5F4F0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: #000000 !important;
  margin-top: 5px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  }}

/* form input size */
.form-wrapper .react-form-contents .field-list .form-item { input, text area, select, textarea {
    font-size: 14px !important;
  }}

/* form button */
input.button.sqs-system-button.sqs-editable-button {
    padding-left: 3em !important;
  padding-right: 3em !important;
  padding-top: 1em !important;
  padding-bottom: 1em !important;
  margin-top: 10px;
}

 

Edited by Valisco
Found a solution
Link to comment
On 5/4/2023 at 9:35 PM, Valisco said:

Did something just recently update with Squarespace for the form?

Yes. Please see my post here:

 

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
On 5/5/2023 at 5:35 AM, Valisco said:

Did something just recently update with Squarespace for the form? I used this code and changed some of it around yesterday (see below for what I used) and it worked perfectly! I looked at my website today and everything reverted back. Do you know of any reason why this would be? 

The only thing that DOES seem to be working still is the padding/margins I did on the form button.

https://www.valiscosupply.com/contact

/* Contact form */
.form-wrapper .field-list .field .field-element {
    background: #F5F4F0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: #000000 !important;
  margin-top: 15px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
}

/* form input size */
.form-wrapper .field-list .field .caption .field-element {
    font-size: 14px !important;
}
/* form button */
input.button.sqs-system-button.sqs-editable-button {
    padding-left: 3em !important;
  padding-right: 3em !important;
  padding-top: 1em !important;
  padding-bottom: 1em !important;
  margin-top: 10px;
}

***** EDIT ******

I figured out the issue from another post. It looks like Squarespace is updating the form to other "naming conventions" (not sure what they're officially called, newbie here) but I was able to fix it with these changes if it helps anyone else.

/* Contact form */
.form-wrapper .react-form-contents .field-list .form-item { input, text area, select, textarea {
    background: #F5F4F0 !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
	color: #000000 !important;
  margin-top: 5px !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  }}

/* form input size */
.form-wrapper .react-form-contents .field-list .form-item { input, text area, select, textarea {
    font-size: 14px !important;
  }}

/* form button */
input.button.sqs-system-button.sqs-editable-button {
    padding-left: 3em !important;
  padding-right: 3em !important;
  padding-top: 1em !important;
  padding-bottom: 1em !important;
  margin-top: 10px;
}

 

Thank you very much! It works perfectly!
If you want to change the place holder too, use this code. I just add red one only.


        .form-wrapper .react-form-contents .field-list .form-item
            { input, text area, select, textarea, ::placeholder
                {
                      font-size: 14px ! important ;
                }
            }

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.