{"id":29891,"date":"2017-11-09T14:19:50","date_gmt":"2017-11-09T14:19:50","guid":{"rendered":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?p=29891"},"modified":"2022-05-17T12:48:42","modified_gmt":"2022-05-17T12:48:42","slug":"123formbuilder-dynamic-prefill","status":"publish","type":"post","link":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/","title":{"rendered":"[AppExchange &#8211; 123FormBuilder] Dynamic Prefill"},"content":{"rendered":"<p style=\"font-size: 14px;\">You can now prefill your form fields with data, by simply typing the keywords based on which the information will be retrieved from Salesforce. Let\u2019s take a look at a couple of scenarios to better understand how the dynamic prefill works.<\/p>\n<p style=\"font-size: 14px;\">1. Let\u2019s say that you want to type an email address and prefill the form fields with some information found in one of your Lead records, where that email address exists.<\/p>\n<p style=\"font-size: 14px;\">The first step is to set up a lookup in the <a href=\"\/\">form builder<\/a>. Here you have to take into account the fields based on which the search will be made (in this case the email is the filter) and the information you want to be returned.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" style=\"border: 1px solid #e6e6e6;\" src=\"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png\" alt=\"salesforce lead lookup 123formbuilder\" width=\"944\" height=\"408\" \/><\/p>\n<p style=\"font-size: 14px;\">The second step is to define the prefill. Follow the steps below to see how is this done.<\/p>\n<p style=\"font-size: 14px;\">1. Select the lookup you just created.<\/p>\n<p style=\"font-size: 14px;\">2. The trigger has to be the field you used as a filter when you set up the lookup. Why? Because you want to prefill form fields with data from your Salesforce record that contains that specific email address. Also, the field that is a trigger will always be highlighted.<\/p>\n<p style=\"font-size: 14px;\">3. For this specific scenario, you will want to load the data when the user starts to type.<\/p>\n<p style=\"font-size: 14px;\">4. Then map the form fields that will be prefilled and choose from what Salesforce fields that data will be retrieved.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" style=\"border: 1px solid #e6e6e6;\" src=\"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/36247e37-d008-4a84-8862-ce485060443c\/2017-11-08_1627.png\" alt=\"map form fields salesforce\" width=\"942\" height=\"577\" \/><\/p>\n<p style=\"font-size: 14px;\">2. Now, let\u2019s take another example. You have a list of records in Accounts and you want the account names that pertain to each record to be loaded on the form. The question is why would you need to do this. The answer is very simple &#8211; you can choose from this entire list an account name and prefill form fields with data from the same record.<\/p>\n<p style=\"font-size: 14px;\">The same as for the previous example, the first step is to create your Lookup, but this time you won\u2019t have any filter. The reason is that you want all account names from Accounts to load.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" style=\"border: 1px solid #e6e6e6;\" src=\"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/cbb63f51-05e7-43c2-8724-16e84cb296d6\/2017-11-09_1306.png\" alt=\"account lookup 123formbuilder in salesforce\" width=\"949\" height=\"283\" \/><\/p>\n<p style=\"font-size: 14px;\">What changes in this scenario, in terms of prefilling options, is that you will load the data when the form is loaded (this is necessary if you use a dropdown field to contain the list of information). Also, the trigger will be as you can see in the image below, the Name field (dropdown field) because there is where we want all the account names displayed.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium\" style=\"border: 1px solid #e6e6e6;\" src=\"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/40abd1fc-ccc2-496b-9ad3-3f919875e921\/2017-11-09_1307.png\" alt=\"salesforce prefilling options in 123formbuilder\" width=\"939\" height=\"550\" \/><\/p>\n<p style=\"font-size: 14px;\">That&#8217;s it. Now you can easily retrieve data from your Salesforce records and pre-populate the form fields as you wish.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can now prefill your form fields with data, by simply typing the keywords based on which the information will be retrieved from Salesforce. Let\u2019s take a look at a couple of scenarios to better understand how the dynamic prefill works. 1. Let\u2019s say that you want to type an email address and prefill the [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":-1,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[134],"tags":[],"class_list":["post-29891","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-123formbuilder-appexchange"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v24.2 (Yoast SEO v27.2) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Dynamic prefill | 123FormBuilder - Help Center<\/title>\n<meta name=\"description\" content=\"The dynamic prefill feature allows you to easily retrieve data from Salesforce records, by just typing the desired keywords on the form.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[AppExchange - 123FormBuilder] Dynamic Prefill\" \/>\n<meta property=\"og:description\" content=\"The dynamic prefill feature allows you to easily retrieve data from Salesforce records, by just typing the desired keywords on the form.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/\" \/>\n<meta property=\"og:site_name\" content=\"123FormBuilder Knowledge Base\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-09T14:19:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-05-17T12:48:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Dynamic prefill | 123FormBuilder - Help Center","description":"The dynamic prefill feature allows you to easily retrieve data from Salesforce records, by just typing the desired keywords on the form.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/","og_locale":"en_US","og_type":"article","og_title":"[AppExchange - 123FormBuilder] Dynamic Prefill","og_description":"The dynamic prefill feature allows you to easily retrieve data from Salesforce records, by just typing the desired keywords on the form.","og_url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/","og_site_name":"123FormBuilder Knowledge Base","article_published_time":"2017-11-09T14:19:50+00:00","article_modified_time":"2022-05-17T12:48:42+00:00","og_image":[{"url":"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#article","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/"},"author":{"name":"admin","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/ac765b93d6689ec0f4ee6f6e040d66ea"},"headline":"[AppExchange &#8211; 123FormBuilder] Dynamic Prefill","datePublished":"2017-11-09T14:19:50+00:00","dateModified":"2022-05-17T12:48:42+00:00","mainEntityOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/"},"wordCount":425,"commentCount":2,"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#primaryimage"},"thumbnailUrl":"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png","articleSection":["AppExchange"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/","name":"Dynamic prefill | 123FormBuilder - Help Center","isPartOf":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#primaryimage"},"image":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#primaryimage"},"thumbnailUrl":"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png","datePublished":"2017-11-09T14:19:50+00:00","dateModified":"2022-05-17T12:48:42+00:00","author":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/ac765b93d6689ec0f4ee6f6e040d66ea"},"description":"The dynamic prefill feature allows you to easily retrieve data from Salesforce records, by just typing the desired keywords on the form.","breadcrumb":{"@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#primaryimage","url":"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png","contentUrl":"https:\/\/content.screencast.com\/users\/biaale\/folders\/Jing\/media\/390af7fe-8a86-4cb9-8811-6ee532d9113c\/2017-11-09_1608.png"},{"@type":"BreadcrumbList","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/123formbuilder-dynamic-prefill\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/"},{"@type":"ListItem","position":2,"name":"[AppExchange &#8211; 123FormBuilder] Dynamic Prefill"}]},{"@type":"WebSite","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#website","url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/","name":"123FormBuilder Knowledge Base","description":"Search our documentation platform for answers, service specifications and 3rd-party integrations.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/#\/schema\/person\/ac765b93d6689ec0f4ee6f6e040d66ea","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/41383a571ede8f1257b128aa53a410cc1ea4c1901ac8cea3776cba5438d24843?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2Fadmin%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/41383a571ede8f1257b128aa53a410cc1ea4c1901ac8cea3776cba5438d24843?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2Fadmin%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/41383a571ede8f1257b128aa53a410cc1ea4c1901ac8cea3776cba5438d24843?s=96&d=https%3A%2F%2Fui-avatars.com%2Fapi%2Fadmin%2F96%2Ff3f3f3%2Faaa%2F1%2F0.5%2Ffalse%2Ftrue&r=g","caption":"admin"},"url":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/29891","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/comments?post=29891"}],"version-history":[{"count":33,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/29891\/revisions"}],"predecessor-version":[{"id":43542,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/posts\/29891\/revisions\/43542"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/media?parent=29891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/categories?post=29891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/123formbuilder.polarbuildingcleaning.net\/docs\/wp-json\/wp\/v2\/tags?post=29891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}