Custom Form Select - Label not translating

Hey @kevin2! This could be a Webflow localization issue, we could write a simple snippet that check if the URL has the /es/.

Should look something like this

<script>
  window.fsAttributes = window.fsAttributes || [];
  window.fsAttributes.push([
    'selectcustom',
    (selectInstances) => {
      console.log('selectcustom Successfully loaded!');

      if (window.location.href.includes('/es/')) {
        document.querySelector('.fs-select_text-1').textContent = 'Filtrar por Tipo';
      } else {
        document.querySelector('.fs-select_text-1').textContent = 'Filter by Type';
      }
    },
  ]);
</script>

Wrapped it in the callback so it only fires after the solution is loaded.

1 Like