Jump to content

Does anyone know how to create a built-in scrolling feature for the Form Block?

Recommended Posts

Posted

I am attempting to add a Terms and Conditions section to a Form Block, but rather than place all of the text on the page, which pushes everything else down and makes the page look bad - I would rather have the text scroll within the box. Similar to the attached example from another website.

I believe I would need custom code. Has anyone done this before on their site?

screen-shot-2019-08-05-at-112802-am.png.2515dc7ec0984b1328d1792323c8d4c1.png

  • Replies 9
  • Views 1.4k
  • Created
  • Last Reply
Posted

Can you direct us to the form on your site with the lengthy terms?

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

As you've added the terms to the description of a checkbox field with the ID

checkbox-yui_3_17_2_1_1564155602604_190745

you can restyle the terms with the following CSS (add to Design > Custom CSS):


#checkbox-yui_3_17_2_1_1564155602604_190745 .description
{
 border: 1px solid #ccc;
 height: 100px;
 overflow: hidden;
 overflow-y: scroll;
 padding: 4px;
}
#checkbox-yui_3_17_2_1_1564155602604_190745 .description::-webkit-scrollbar {
 -webkit-appearance: none;
 width: 7px;
 }
#checkbox-yui_3_17_2_1_1564155602604_190745 .description::-webkit-scrollbar-thumb {
 border-radius: 4px;
 background-color: rgba(0,0,0,.5);
 -webkit-box-shadow: 0 0 1px rgba(255,255,255,.5);
 }

alt text

Let me know how you get on.

-Paul

Squarespace Expert & Professional Developer

Contributors to this forum voluntarily give their time to help you. If we correctly answer your question, please accept the answer by clicking Accept below it (you'll see it when you're logged on). If an answer doesn't help, feel free to ask for more help or wait for other forum users to add their comments and/or answers.

Whenever an accepted answer helps you, please vote it up using the up arrow on the right. This helps other forum users by giving them confidence in an answer.

terms-screenshot.png.aad6359210d1c9884b2c87aae9859f87.png

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Posted

Thank you that worked!

Now will I be able to do the same for the additional forms on the website? How do I find the checkbox field with the ID i.e. #checkbox-yui317211564155602604190745

Posted

Thank you that worked!

Now will I be able to do the same for the additional forms on the website? How do I find the checkbox field with the ID i.e. #checkbox-yui317211564155602604190745

Posted

Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. 
Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links.
Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional.

Archived

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

Guest
This topic is now 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.