Use Smart Forms with WPML

Enable Smart Forms as a translatable post type in WPML, create linked form translations, and verify that the shortcode renderer selects the form for the current language.

Smart Form Builder by Dragwyb includes code to register its form post type for WPML translation and to resolve a translated form when a form is rendered in another language. To display different field labels or content per language, create and link a translated Smart Form, then embed the appropriate form on the translated page.

Prepare WPML for Smart Forms

  1. Install and activate WPML and configure the languages for your WordPress site.
  2. Open the WPML translation settings and confirm that the Smart Form Builder form post type (dragwyb-forms) is available for translation. The plugin registers this post type with WPML’s translatable-type hooks.
  3. Open Smart Forms → Forms and locate the form you want to translate.
  4. Use WPML’s language/translation controls to create a translation for the target language. The plugin includes translation-link handling for its custom form editor.
  5. Open the translated form in the Smart Form Builder editor, translate its field labels, help text, options, and messages as required, then save and publish it.

Embed the form on each language page

  1. Translate the page or post that contains the form using your normal WPML workflow.
  2. Keep a Smart Form Builder shortcode, Gutenberg block, or Elementor widget on the page. Each of these integrations renders through the plugin’s shortcode handler.
  3. Verify that the translated form is linked to the source form in WPML and is published.
  4. Open the translated public page and confirm that the correct language’s form appears.

How translated form selection works

At render time, the plugin checks the current language and the language assigned to the selected form. If they match, it keeps the selected form. If they differ, it looks for a WPML translation and uses it when a valid translated form is found. If no translation is found, the handler falls back to the original form ID; the plugin does not guarantee that a translated form exists for every language.

Troubleshooting

  • If the original language form appears, check that the form post type is translatable and the target form is linked in WPML.
  • Confirm the translated form is published and contains saved fields.
  • Test the shortcode, Gutenberg block, or Elementor widget on the public page in each language.
  • Review notifications and confirmation messages separately if they need language-specific wording.

The plugin source contains WPML translation hooks and form-ID resolution logic. A live WPML installation and a linked translation pair were not tested as part of this documentation update.

Screenshot to add: [WPML translation controls for a Smart Form]