padapda
December 21, 2021, 12:28pm
#1
Hello, I have created a sign up form and translated the texts, however I don’t see the option to translate the “I have agree to the {terms} & {privacy policy}” and the “or” between the sign up and sign in button>
How could I translate them? I’m on the free plan.
Here’s a screenshot of the form
1 Like
artur
December 22, 2021, 4:54pm
#2
Here is an example in French:
<!-- Signup -->
<script>
document.addEventListener("DOMContentLoaded", function() {
$('.terms span').eq(1).text('J’ai lu et j’accepte');
$('.terms span').eq(2).text('ou');
$('.terms span').css('font-size','13px');
$('.terms a').css('font-size','13px');
});
</script>
1 Like
padapda
December 23, 2021, 7:16pm
#3
Yeah I can’t use that, custom scripts are only on the paid plans. I said I use the free one.
acjnas
October 4, 2022, 4:27pm
#4
Here is my outcome using that code:
The styles and checkbox are broken
artur
October 4, 2022, 5:04pm
#5
@acjnas share the link without the code I will check and suggest alternative might be the code needs tweaks
acjnas
October 4, 2022, 8:15pm
#6
Thank you Arthur for considering updating the current snippet.
Here is the link I was trying the code (without the code as requested.)
https://joie680.softr.app/signup
artur
October 4, 2022, 8:26pm
#7
@acjnas changed the original here can you pls check ?
acjnas
October 4, 2022, 8:40pm
#8
artur:
<!-- Signup -->
<script>
document.addEventListener("DOMContentLoaded", function() {
$('.terms span').eq(1).text('J’ai lu et j’accepte');
$('.terms span').eq(2).text('ou');
$('.terms span').css('font-size','13px');
$('.terms a').css('font-size','13px');
});
</script>
Nice ! it is working as expected. Many many thanx
acjnas
October 4, 2022, 9:05pm
#9
I just want to add something that might be important:
If you have more than one signup block, the code will only work on the block you have listed first on your softr app. So try to place these blocks accordingly for the code to work.
artur
October 5, 2022, 9:02am
#10
I will edit to make it block specific
2 Likes
artur
October 7, 2022, 3:57pm
#11
@acjnas you would simply add #blockname to each selector like shown below
artur:
$('.terms span')
to
2 Likes
Jackson
February 15, 2023, 1:54pm
#13
thanks a lot for that codes @artur
Do you know if there’s a way to ad a 3rd link to that text?
Like: I accept “link to page1”, “link to page2” and “link to page3” ?
That would be awesome.
Thanks a lot in advance
Julian