Jump to content

Waitlist / product-restock-form – Custom Placeholder Text

Recommended Posts

1 hour ago, deets87 said:

Site URL: https://www.rowac.com/de/shop/p/wood-polish

I'm trying to switch out the default placeholder text "Email Address" in the waitlist form.

I tried using the below code, but without success. I already used similar code for switching out the newsletter placeholder text and that worked. Any ideas?

document.querySelector(‘.product-restock-form[name="email"]').placeholder='Email Adresse';

Try adding to Home > Settings > Advanced > Code injection, choose footer

<script>
  (function() {
    window.addEventListener('DOMContentLoaded', () => {
      const inputForm = document.querySelector('.product-restock-form input');
      if(inputForm) {
        inputForm.setAttribute('placeholder', 'Your address');
      }
    });
  })()
</script>

Let me know how it works on your site

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

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.