Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

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


JohnP26
Go to solution Solved by paul2009,

Question

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

Edited by JohnP26
Initial Revision
Link to post
  • Answers 9
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Posted Images

9 answers to this question

Recommended Posts

  • 0

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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

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

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
  • 0

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

Link to post
  • 0

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

Link to post
  • 0

sf-digital-signature-logo-email145.png.46606a2288a2847f44d81b9b7b58f3a5.png
Hi, I'm Paul, founder of SF Digitalbuilding the features that Squarespace didn't include. Pick dates in any format, show prices in other currencies, take orders without payment or improve your cartI value honesty, integrity, transparency and respect. Links in my posts may refer to SF Digital products or may be affiliate links.  Squarespace. I've been a loyal supporter of the platform since 2007. 

Link to post
Guest
This topic is now closed to further replies.

×
×
  • Create New...