Integration Guides Formsite
Translate Formsite with SiteTran

Translate Formsite with SiteTran

Last updated: 5 days ago
6 minute read
Yuliia Kovalchuk
Writer at SiteTran

ALL ARTICLES

Help Center

Overview of Formsite + SiteTran Integration

This guide shows you how to add a language dropdown to a Formsite form and translate it with SiteTran. Registrations, applications, surveys, and support requests all work better when people can fill them out in their own language, and you don't need a separate copy of the form for each language.

You add the SiteTran widget to your form with Formsite's Custom Code item. SiteTran then collects your form's labels, questions, and choices, so you can translate them with AI, machine translation, or your own translators and publish them to the live form.

What you will do:

  1. Copy your widget code from SiteTran.
  2. Add a Custom Code item to your form in the Formsite Form Editor and paste the code.
  3. Repeat that on every page of a multi-page form.
  4. View the form, switch languages so SiteTran discovers your text, then translate, approve, and publish.

Prerequisites:

A Formsite website that you want to translate.

A SiteTran site that you will integrate with Formsite. If you haven’t already, sign up for SiteTran and create a (free) SiteTran site.

Time needed:

Estimated time needed: 4 minutes.

Let’s get started.

Get your Widget Code

First, retrieve your widget code from SiteTran. If you haven’t already signed up for SiteTran, it only takes 30 seconds. After creating your account, create a new site in SiteTran to get your widget code, which will generate the language dropdown on your Formsite site.

Copy the Widget Code

Click the "Copy" button to get your widget code. You will use this in a bit.

Your Widget Code is available when creating your SiteTran site. If you skipped this step you can also retrieve it from the Dropdown Style page.

Screenshot of site setup to retrieve widget code

Integrating with Formsite

Initial Login and Navigation

In a new tab, log in to your Formsite website, you will land on your dashboard. Locate the list of available forms. Find the form you wish to translate and click the Edit button next to its title. This will open the form builder, where you can begin customizing and preparing your form for localization or translation.

Screenshot of the Formsite dashboard showing the 'Edit' button selected for the 'Conference Signup' form

Insert a Custom Code Field

Inside the Form Editor, navigate to the left panel and click Formatting Items. From here, double-click on the Custom Code option to add a code block to your form. This is essential for inserting translation scripts or dynamic styling for localized content. Position the block where needed to apply custom functionality across your form.

Screenshot of the Formsite Form Editor showing the 'Formatting Items' section with the 'Custom Code' field highlighted for insertion into the form

Paste Code in Pop-Up and Click Save

In the Custom Code editor popup, paste the SiteTran widget code you copied earlier into the provided code field. This script enables dynamic translation capabilities within your form. Once the code is in place, click Save to embed it into the form. This step is essential for activating SiteTran’s multilingual support directly within your Formsite form.

Your widget code looks like this:

<script>var sitetran = { site_id: your_site_id };</script>
<script src="//c.sitetran.com/widget/v3.js"></script>

If you need help finding your code snippet, check out this article.

Screenshot of Formsite's Custom Code editor with a sample SiteTran widget code inserted and the Save button highlighted.

Add the Code to Every Page of Your Form

A Custom Code item only runs on the form page it's placed on. If your form has more than one page, add a Custom Code item with the same SiteTran widget code to each page, so the language dropdown and translations appear on every step of the form.

After inserting and saving the SiteTran widget code, click the View Form button in the top right corner of the Form Editor. This allows you to preview your form exactly as end users will see it—ensuring the translation widget loads properly and your localization setup is working as expected. Use this opportunity to test the form in multiple languages and make any final adjustments.

Screenshot of the Formsite Form Editor highlighting the 'View Form' button in the top right corner to preview the form after code insertion

Verifying & Translating

Testing the Integration

Locate the SiteTran Widget. Choose your new language from the dropdown, and SiteTran will begin discovering your phrases.

Screenshot of a Formsite form preview showing the successfully integrated SiteTran language widget in the bottom section of the form Screenshot of SiteTran language dropdown on formsite

Congratulations! You have successfully integrated SiteTran with your Formsite

After the Widget Is Live

Collect your form's text

Open the live form, choose a language other than your original language, and step through every page of the form. The widget sends the text it finds to SiteTran, where it shows up in Pages & Phrases. See How do I Populate SiteTran With my Website's Content?

Some text only appears after someone interacts with the form, such as messages that show when a field is left empty. Trigger those once while browsing in another language so SiteTran can collect them too. See Translating Dynamic Content.

Translate, approve, and publish

Translate the phrases yourself, invite a translator, or turn on AI and machine translation for a quick first draft. Add form terms you want translated the same way every time, such as your organization's name or program names, to the Glossary. A translation appears on your form once it is approved and published. New to the translator interface? Start with How to Translate on SiteTran.

Use one SiteTran site for many forms

If your team runs several Formsite forms, you can paste the same widget code into each of them. Their phrases are collected in one SiteTran site, so a question that repeats across forms only needs to be translated once.

Troubleshooting Formsite

The language dropdown only shows on the first page

A Custom Code item only runs on the page it is placed on. Add one with the same widget code to every page of the form, as described in Add the Code to Every Page of Your Form.

The language dropdown doesn't appear at all

  • Make sure you clicked Save in the Custom Code editor, and that you are viewing the form with View Form or its live link rather than the editor.
  • Check that both lines of the widget code were pasted.
  • Make sure your SiteTran language is active and live. See My Language Isn’t Showing Up in the Language Dropdown.

My translations aren't showing on the form

A translation goes live only after it is approved and published. Work through My New Translations or Changes Aren’t Appearing on my Website.

To read about why translated forms matter and who uses them, see Translate Formsite Forms: Seamless Localization for your Online Forms Using SiteTran.

Couldn't find what you were looking for?

In this article