{"id":274,"date":"2026-10-17T14:16:41","date_gmt":"2026-10-17T14:16:41","guid":{"rendered":"http:\/\/plugin-docs.com\/?post_type=doc&#038;p=274"},"modified":"2026-10-18T21:12:52","modified_gmt":"2026-10-18T21:12:52","slug":"use-smart-forms-polylang","status":"publish","type":"doc","link":"https:\/\/dragwyb.com\/docs\/use-smart-forms-polylang\/","title":{"rendered":"Use Smart Forms with Polylang"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Smart Form Builder by Dragwyb includes Polylang hooks for its form post type and checks the current language when rendering a form. To display language-specific labels and messages, enable Smart Forms for translation in Polylang, create linked translated forms, and embed the form on the matching language page.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Enable Smart Forms for translation<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Install and activate Polylang and configure the languages used by your site.<\/li>\n<li>Open Polylang\u2019s settings and find the <strong>Custom post types and Taxonomies<\/strong> section.<\/li>\n<li>Enable the Smart Form Builder form post type (<code>dragwyb-forms<\/code>) for translation, then save the Polylang settings.<\/li>\n<li>Open <strong>Smart Forms \u2192 Forms<\/strong> and locate the form to translate.<\/li>\n<li>Use the language\/translation controls to create a form translation for the target language. The plugin includes Polylang hooks that direct translation links to its custom form editor.<\/li>\n<li>Translate the field labels, help text, options, and messages in the translated form, then save and publish it.<\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\">Use translated forms on language-specific pages<\/h2>\n\n\n<ol class=\"wp-block-list\">\n<li>Create or translate the page that should contain the form using your usual Polylang workflow.<\/li>\n<li>Embed the form with a Smart Form shortcode, the Gutenberg <strong>Smart Form<\/strong> block, or the Elementor <strong>Smart Form<\/strong> widget.<\/li>\n<li>Confirm the translated form is linked to the original in Polylang and has published status.<\/li>\n<li>Open each language version of the public page and verify the expected form language.<\/li>\n<\/ol>\n\n\n<h2 class=\"wp-block-heading\">How language-aware rendering works<\/h2>\n\n\n<p class=\"wp-block-paragraph\">The plugin checks the current Polylang language and the language of the form selected in the page content. When a linked translation exists for the current language, it can render that translated form. If the translation lookup returns no form, the handler falls back to the original form ID, so a translated form is not automatically created for you.<\/p>\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n<ul class=\"wp-block-list\">\n<li>If the form stays in the original language, verify that the <code>dragwyb-forms<\/code> post type is enabled for translation in Polylang.<\/li>\n<li>Check that the translation relationship is saved and the translated form is published.<\/li>\n<li>Check the public language page rather than relying only on the editor preview.<\/li>\n<li>Test form submissions and language-specific email text separately; translation of the page does not automatically translate every form setting.<\/li>\n<\/ul>\n\n\n<p class=\"wp-block-paragraph\">The plugin source includes Polylang post-type registration and translated-form lookup logic. A live Polylang installation and a linked translation pair were not tested during this documentation update.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Screenshot to add: [Polylang language controls for a Smart Form]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Enable the Smart Forms custom post type in Polylang, create linked form translations, and verify language-aware rendering on translated pages.<\/p>\n","protected":false},"author":0,"featured_media":0,"parent":267,"menu_order":0,"template":"","class_list":["post-274","doc","type-doc","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/274","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc"}],"about":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/types\/doc"}],"version-history":[{"count":2,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/274\/revisions"}],"predecessor-version":[{"id":1223,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/274\/revisions\/1223"}],"up":[{"embeddable":true,"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/doc\/267"}],"wp:attachment":[{"href":"https:\/\/dragwyb.com\/docs\/wp-json\/wp\/v2\/media?parent=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}