deets87 Posted April 8, 2022 Share Posted April 8, 2022 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'; Link to comment
Beyondspace Posted April 8, 2022 Share Posted April 8, 2022 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 geglaja and tuanphan 2 BeyondSpace - Squarespace Website Developer 🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox, video lightbox and much more) 🗓️ Delivery Date Picker (Squarespace Date picker form field) 💫 Gallery block 7.1 workaround 🥳 No-code customisations for Squarespace 🚀 Learn how to rank new pages on Google in 48 hours! 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
deets87 Posted April 8, 2022 Author Share Posted April 8, 2022 Thanks bangank36, that did the trick! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment