Hi,
I'm using square space for the first time and I have never coded before so I hope you guys can help me. I'm trying to translate the hard coded labels in the contact form on our web page https://padelakersberga.com/kontakt-1
Good attempt! Try adding this to Settings > Advanced > Code Injection > Footer instead:
<script>
if (document.querySelector('.form-item.fields.name')) {
document.querySelect
Question
teddow 0
Hi,
I'm using square space for the first time and I have never coded before so I hope you guys can help me. I'm trying to translate the hard coded labels in the contact form on our web page https://padelakersberga.com/kontakt-1
I tried with this code, but it didnt work:
<script>
if (document.querySelector("#name-yui_3_17_2_1_1553888888520_3744")) {
document.querySelector('.field-element field-control[name="fname"]').placeholder = 'Förnamn';
document.querySelector('.field-element field-control[name="lname"]').placeholder = 'Efternamn';
}
</script>
Maybe I'm way off here, the code could be totally wrong, but I found some similar code while searching for answers so this is what I came up with.
BR
Ted
Link to post
Top Posters For This Question
1
1
Popular Days
Feb 18
2
Top Posters For This Question
teddow 1 post
paul2009 1 post
Popular Days
Feb 18 2021
2 posts
Popular Posts
paul2009
Good attempt! Try adding this to Settings > Advanced > Code Injection > Footer instead: <script> if (document.querySelector('.form-item.fields.name')) { document.querySelect
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment