The code snippet below can help you modify the text that appears within or related to a form on your landing page. It allows you to change the following:
- The "Processing..." message that appears upon form submission when there is no Thank You message set.
- Various form errors for invalid inputs.
- The months of the year within a Dropdown field.
- The days of the week in a Date field.
- The words "Cancel" and "Apply" should they be present on the form.
Open Javascript from the right-side menu in your page builder, then paste this code inside the Footer:
You can paste the code in any of the sections (Header, Body or Footer), but since this affects form submit we recommend placing it in the Body or Footer Section, in order to prioritize page loading order correctly.
You can change the text to be in any language of your choosing.
Non-latin characters will break the code so swap all non-latin characters with HTML entities like:
¡ change to ¡
& change to &
" change to "
You can find a full list of HTML entities in this article: https://d.pr/l7ibLh.
You can use this code in order to remove the "Processing..." message completely.
To do that, put a space between the single quotes instead of translating the message, like this:
Translating the -Select one- text from dropdown fields into another language