Janho Posted November 23, 2023 Share Posted November 23, 2023 Hi, is it possible to edit/change the default text of the consent checkbox? The whole picture: I want to set up a form on a page for a customer in which users register for an event. The form is simple and only requires your name, company and email address. I would like to record the data as a mailing list and create an automation that immediately sends a confirmation of registration to the user after sending the form. For this to work, the user must give their consent and click the checkbox. I would like to change this text ("Sign up for news and updates*), which is included by default. How could that work? Link to comment
melody495 Posted November 23, 2023 Share Posted November 23, 2023 Hi @Janho, when you click on Edit (pencil icon) on the form, do you get this pop up? If not, please share a link to your website. -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Janho Posted November 23, 2023 Author Share Posted November 23, 2023 (edited) @melody495 - thank you for your fast answer ... my website ist: https://30jahre.businesscircle.at I know I can change the field names. But I would like the standard text for the checkbox for consent to receive emails. I can only switch this checkbox on and off. I cannot change text. see the screenshot ... Edited November 23, 2023 by Janho Link to comment
melody495 Posted November 23, 2023 Share Posted November 23, 2023 (edited) 2 hours ago, Janho said: I cannot change text. Ah gotcha! The German threw me off 😁 I've tested this should work. Try add the below to Website Tools -> Custom CSS (Not Linked), and let me know how it goes .form-item.field.email { .option font { display: none!important; } .option span:after { content: "Change to what you want"; } } Edited November 23, 2023 by melody495 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Janho Posted November 23, 2023 Author Share Posted November 23, 2023 oh, wow! it works - half. The standard text remains and the new text from the script comes afterwards. In my (German) screenshot you can see that both texts are now there one after the other.. Thanks! Link to comment
melody495 Posted November 23, 2023 Share Posted November 23, 2023 1 hour ago, Janho said: it works - half. The standard text remains and the new text from the script comes afterwards. Hi, I updated my original answer with !important. Try the new code, should work. If it does, please give it a thumbsup and mark as solution. thank you 🙂 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Janho Posted November 23, 2023 Author Share Posted November 23, 2023 no sorry. This changes nothing. If I use -> "before" instead of "after", then the desired text is at the beginning, but then the standard text again... hmm Link to comment
melody495 Posted November 23, 2023 Share Posted November 23, 2023 15 minutes ago, Janho said: no sorry. This changes nothing. Refresh the page? -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Janho Posted November 24, 2023 Author Share Posted November 24, 2023 no, i'd done that ... The "before" and "after" commands don't change the text defined in the code, right? we want to replace the standard text. Link to comment
paul2009 Posted November 24, 2023 Share Posted November 24, 2023 (edited) 23 hours ago, Janho said: Is it possible to edit/change the default text of the consent checkbox? I would like to change this text ("Sign up for news and updates*), which is included by default. This Email Signup option is new (July 2023) and, as you mentioned, the caption for this checkbox is currently fixed. I made a feature request for this to be editable (Circle members can vote it up here), but right now you'll need some code (JavaScript or CSS) to change it. Try this CSS: #collection-655db204d1c0f4729bc67032 .form-item.field.email.required .option label span { margin-top: 4px; font-size: 0; visibility: hidden; } #collection-655db204d1c0f4729bc67032 .form-item.field.email.required .option label span:before { content: "Anklicken um Anmeldebestätigung erhalten."; font-size: 14px; visibility:visible; } It is a bit "hacky" but should work. I've included the Collection ID for that page so that it doesn't affect other forms on the site, so this will need to be removed or updated if you want to use it on other forms/pages: Let me know if experience any issues. Did this help? Please give feedback by clicking an icon below ⬇️ Edited November 24, 2023 by paul2009 Janho 1 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
melody495 Posted November 24, 2023 Share Posted November 24, 2023 (edited) 4 hours ago, Janho said: no, i'd done that ... The "before" and "after" commands don't change the text defined in the code, right? we want to replace the standard text. No, display none hides it. After writes the new content. Ah, looks like the html has changed between me testing that code and you checking it! (the font element no longer exists). An untimely SquareSpace update. Try this .form-item.field.email { .option span { display: none!important; } .option:after { content: "Change to what you want"; } } Like @paul2009 said, if you want just to target this particular form, try this #collection-655db204d1c0f4729bc67032 .form-item.field.email { .option span { display: none!important; } .option:after { content: "Change to what you want"; } } But try both code from paul and myself, see which looks better on screen. (they might look the same!) Edited November 24, 2023 by melody495 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Janho Posted November 24, 2023 Author Share Posted November 24, 2023 Hej! you are great!!! @melody495 + @paul2009 !! I combined both suggestions and this works: #collection-655db204d1c0f4729bc67032 .form-item.field.email.required .option label span { margin-top: 4px; font-size: 0; visibility: hidden; } #collection-655db204d1c0f4729bc67032 .form-item.field.email.required .option label span:before { font-size: 14px; visibility:visible; content: "Anklicken um Anmeldebestätigung erhalten."; } i added to @paul2009's code the line from @melody495 "content: "xxxx" and voila! THANK YOU GUYS!! love, jan melody495 1 Link to comment
melody495 Posted November 24, 2023 Share Posted November 24, 2023 @Janho Glad it's all working for you! Curious, does my new code work? Janho 1 -------- > 👆 <---------- Please quote or @ me when replying, or I won't get a notification Melody | Squarespace Website Developer e: melody@melodylee.tech 💻 Can't figure something out and want to learn? 💁♀️ 1-2-1 Squarespace session 👩💻 Need some customisation for a design? 💁♀️ Custom Code help ☕ Did I help? 💁♀️ I like coffee Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment