An example to adjust the label of a Firmhouse field name, for instance by adding “(optional)” to the field.
<script>
window.addEventListener("turbo:load", function() {
if (["nl"].includes(document.documentElement.lang)) {
document.querySelector('label[for="subscription_phone_number"]').innerText = "Telefoonnummer (optioneel)"
}
if (["en"].includes(document.documentElement.lang)) {
document.querySelector('label[for="subscription_phone_number"]').innerText = "Phone number (optional)"
}
})
</script>
See this helpdesk article on how to add custom code (like JavaScript ) to your checkout.