Janho Posted November 23, 2023 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?
melody495 Posted November 23, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
Janho Posted November 23, 2023 Author 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
melody495 Posted November 23, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
Janho Posted November 23, 2023 Author 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!
melody495 Posted November 23, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
Janho Posted November 23, 2023 Author 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
melody495 Posted November 23, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
Janho Posted November 24, 2023 Author 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.
paul2009 Posted November 24, 2023 Posted November 24, 2023 (edited) On 11/23/2023 at 12:59 PM, 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 .react-form-contents:not(.react-form-contents--submitted) .form-item.field.email.required .option label span:before { content: "Anklicken um Anmeldebestätigung erhalten."; font-size: 14px; visibility:visible; } Note that the collection IDs mentioned above are specific to this website. If using this on other websites, you'll need to identify the collection IDs of the pages or remove the references to these altogether. 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 October 21 by paul2009 Updated Janho 1 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.
melody495 Posted November 24, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
Janho Posted November 24, 2023 Author 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
melody495 Posted November 24, 2023 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 Nerd 💻 💁♀️ 1-2-1 Squarespace Training session <- feeling stuck and want to learn? 👩💻 💁♀️ Website help <- send me your to-do list. From code to plugin to domain setup. 🧰 See the tools I use (contain affiliate links) ☕ Did I help? I like coffee (Thank you)
cruz Posted October 21 Posted October 21 (edited) On 11/24/2023 at 12:37 PM, Janho said: 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."; } Hi! Just applied your code, BUT after submission the translated text remains visible on the "Thank You" post submission page. Any solution? Thanks, MC Edited October 21 by cruz
cruz Posted October 21 Posted October 21 (edited) Site URL: https://www.gaudiummagnum.org/home-pt Hi! Applied Paul2009's translation solution on my Portuguese page form: How can I make the Portuguese translated text NOT appear on the post-submit page? Thanks in advance, MC Edited October 21 by cruz
paul2009 Posted October 21 Posted October 21 Hi 👋 I've updated the original answer to include .react-form-contents:not(.react-form-contents--submitted). This should ensure the additional text doesn't appear when the form has been submitted 🙂. 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.
Georgie-LBC Posted October 22 Posted October 22 Any updates on a work around for the the text remaining visible on the post submit?
paul2009 Posted October 23 Posted October 23 6 hours ago, Georgie-LBC said: Any updates on a work around for the the text remaining visible on the post submit? Yes. The original answer has been updated. 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment