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

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

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

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

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.