Jump to content

Change form field text from English to French

Recommended Posts

  • Replies 9
  • Views 1.2k
  • Created
  • Last Reply

Hi @lucyalice   You can do this , it would be little tricky  you have to use Javascript code you just have to copy and paste the code in the same page as the newsletter it.

You can simply do it by adding a new Code Block (click on + when you are editing the page ans serach for code ) and paste the following code in it.

<script
  src="https://code.jquery.com/jquery-1.12.4.min.js"
  integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ="
  crossorigin="anonymous"></script>

<script>
$('.first-name>input').attr('placeholder', 'FIRST NAME TEXT'); 
$('.last-name>input').attr('placeholder', 'LAST NAME TEXT'); 
$('.email>input').attr('placeholder', 'ENTER YOUR EMAIL TEXT');

</script> 

Change the First Name Text , Last Name Text , Enter your Email Text with the desired text you want  🙂

Hope it helps 🙂

Link to comment
  • 4 months later...
4 hours ago, saraschelde said:

Hey @humxahafeex

Will I be able to use this one on my form fields too? 

Got this one where I want to change "First Name" and "Last Name" to Danish.

Not sure how I would fine the src code?

Thanks in advance,

Sara 

 

Can you share link to page in screenshot? We can help easier.

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
  • 2 weeks later...
On 8/10/2020 at 8:27 PM, andrzepa said:

@tuanphan just in case you've missed this post. Your divine intervention is required:)

Add to Page Settings > Advanced > Header

<style>
/* First name */
.field.first-name span.caption-text {
    visibility: hidden;
}
.field.first-name span.caption-text:before {
    visibility: visible;
    content: "New first";
}
/* last name */
.field.last-name span.caption-text {
    visibility: hidden;
}
.field.last-name span.caption-text:before {
    visibility: visible;
    content: "new last name";
}
</style>

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment
17 hours ago, andrzepa said:

Thank you @tuanphan, I need figure out whether upgrading my plan to business, to edit site header, is worth the money in my case.

br

Pawel

If you use Personal Plan > Edit Page > Add Code Block > Paste above code

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Archived

This topic is now archived and is closed to further replies.

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