Jump to content

Form blocks: Change standard text?

Recommended Posts

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?

Bildschirmfoto 2023-11-23 um 13.51.37.png

Link to comment

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.

image.png.bdb00f28371c0db7ca335c365399e648.png

-------- > 👆 <---------- 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)

Link to comment
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 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)

Link to comment
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)

Link to comment
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)

Link to comment
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:

image.thumb.png.78ea6f073ba5f39692bfff7fb090145d.png

Let me know if experience any issues.

Did this help? Please give feedback by clicking an icon below  ⬇️ 

Edited by paul2009
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.

Would you like your customers to be able to mark their favourite products in your Squarespace store?

Link to comment
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.

image.thumb.png.d1933a0f5c748b59a9a057e0db4b3d3d.png

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 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)

Link to comment

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

 

Link to comment

@Janho Glad it's all working for you!

Curious, does my new code work?

-------- > 👆 <---------- 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)

Link to comment
  • 10 months later...
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 by cruz
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.