{"id":7657,"date":"2021-09-22T13:26:37","date_gmt":"2021-09-22T13:26:37","guid":{"rendered":"https:\/\/docs.campaignsuite.nl\/docs\/gravity-forms\/marketing-cloud\/prefilling-fields\/"},"modified":"2021-09-22T13:30:20","modified_gmt":"2021-09-22T13:30:20","slug":"prefilling-fields","status":"publish","type":"docs","link":"https:\/\/docs.campaignsuite.nl\/en\/docs\/gravity-forms\/marketing-cloud\/prefilling-fields\/","title":{"rendered":"Prefilling fields"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"7657\" class=\"elementor elementor-7657\">\n\t\t\t\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-711fc97 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"711fc97\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-94d19b4\" data-id=\"94d19b4\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t\t\t<div class=\"elementor-element elementor-element-64b9ebd elementor-widget elementor-widget-text-editor\" data-id=\"64b9ebd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>CampaignSuite offers the possibility to prefill Gravity Forms fields with Contact data from Marketing Cloud. To use this functionality it is necessary that a specific Cloud Page exists in Marketing Cloud. This page generates a JSON containing the available fields to retrieve.<\/p><p>An example of such a JSON is:<\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-7635 aligncenter\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-14.56.00.png\" alt=\"\" width=\"307\" height=\"436\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-14.56.00.png 307w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-14.56.00-211x300.png 211w\" sizes=\"auto, (max-width: 307px) 100vw, 307px\" \/><\/p><p>In the general CampaignSuite settings, the Endpoint can be set for this Cloud Page <strong>(Prefill page Endpoint).<\/strong> In addition, it is also possible to overwrite this URL per form.<\/p><p>Follow these steps to prefill fields with Marketing Cloud data:<\/p><ol><li>Go to the <strong>Settings<\/strong> of a form and click on the tab <strong>MC Prefill.<\/strong><\/li><li>Click on the first checkbox to enable prefilling for this form.<\/li><li>Then set all parameters needed in the URL of the page to retrieve a record in Marketing Cloud.<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7639\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.01.21.png\" alt=\"\" width=\"471\" height=\"178\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.01.21.png 471w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.01.21-300x113.png 300w\" sizes=\"auto, (max-width: 471px) 100vw, 471px\" \/><br \/>For example, in this image there are 2 parameters set. The URL of the page where the form will be placed on could look like this:<br \/>https:\/\/www.test.nl\/formulier-pagina?id=5847&amp;hash=fjd837hjd93<\/li><li>Specify whether to hide the form if no record can be found in Marketing Cloud based on the specified parameters and their value. You can also type a message to be shown instead of the form if it is hidden.<\/li><li>It is possible to overwrite the default Prefill Endpoint with another one. Add it to the field\u00a0<strong>Custom prefill URL<\/strong>.<\/li><\/ol><h4>Map fields<\/h4><p>As a final step, it is necessary to link fields from Marketing Cloud to your Gravity Forms fields. In this way you determine which data should be placed in which field.<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7641\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.07.06.png\" alt=\"\" width=\"912\" height=\"327\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.07.06.png 912w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.07.06-300x108.png 300w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.07.06-768x275.png 768w\" sizes=\"auto, (max-width: 912px) 100vw, 912px\" \/><\/p><h4>Personalize confirmations<\/h4><p>When you use the prefill option, these fields can also be used for form confirmations (such as confirmation text or redirect URL).<\/p><p><strong>Confirmation text<\/strong><\/p><p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7647\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.14.52.png\" alt=\"\" width=\"878\" height=\"382\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.14.52.png 878w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.14.52-300x131.png 300w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.14.52-768x334.png 768w\" sizes=\"auto, (max-width: 878px) 100vw, 878px\" \/><\/p><p>All Marketing Cloud Prefill fields can be used in the confirmation message. To do this, click on the curly brackets to the right of the editor and select one of the prefill fields.<\/p><p><strong>Redirect page or URL<\/strong><\/p><p>It is also possible to use the prefill fields in a querystring:<br \/><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-7649\" src=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.17.36.png\" alt=\"\" width=\"918\" height=\"579\" srcset=\"https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.17.36.png 918w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.17.36-300x189.png 300w, https:\/\/docs.campaignsuite.nl\/wp-content\/uploads\/2021\/09\/Screenshot-2021-09-22-at-15.17.36-768x484.png 768w\" sizes=\"auto, (max-width: 918px) 100vw, 918px\" \/><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>CampaignSuite offers the possibility to prefill Gravity Forms fields with Contact data from Marketing Cloud. To use this functionality it is necessary that a specific Cloud Page exists in Marketing Cloud. This page generates a JSON containing the available fields to retrieve. An example of such a JSON is: In the general CampaignSuite settings, the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":7565,"menu_order":1,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-7657","docs","type-docs","status-publish","hentry","no-post-thumbnail"],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/comments?post=7657"}],"version-history":[{"count":9,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7657\/revisions"}],"predecessor-version":[{"id":7667,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7657\/revisions\/7667"}],"up":[{"embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/docs\/7565"}],"wp:attachment":[{"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/media?parent=7657"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/docs.campaignsuite.nl\/en\/wp-json\/wp\/v2\/doc_tag?post=7657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}