Jump to content

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

Recommended Posts

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

Link to comment
  • Replies 9
  • Created
  • Last Reply

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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

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

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.

Buy me a coffee

Link to comment

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.