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

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, 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.