{"id":446,"date":"2021-03-02T15:20:33","date_gmt":"2021-03-02T15:20:33","guid":{"rendered":"http:\/\/lhotsetechnologies.com\/blog\/?p=446"},"modified":"2021-03-09T18:24:32","modified_gmt":"2021-03-09T18:24:32","slug":"prefill-service-in-adaptive-forms","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/","title":{"rendered":"Prefill Service in Adaptive Forms"},"content":{"rendered":"\n<p>In this blog, I want to share how we can use the <strong>Prefill Service <\/strong>feature in adaptive forms.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>What is the use of Prefill Service?<\/strong><\/p>\n\n\n\n<p>It is used to prepopulate the form with given values.<br><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><strong>How to create Prefill Service?<\/strong><\/p>\n\n\n\n<p>For creating prefill service you need to create an osgi component. For example:-<\/p>\n\n\n\n<p>In my form I have two text boxes as shown.<br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\" alt=\"\"\/><\/figure>\n\n\n\n<p>So to prefill these values while <strong>Preview, <\/strong>I am making the osgi component. My class name is <strong>MyPrefillAdaptiveForm.class<\/strong><\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p>import com.adobe.forms.common.service.*;<\/p>\n\n\n\n<p>import org.osgi.service.component.annotations.Component;<\/p>\n\n\n\n<p>import org.slf4j.Logger;<\/p>\n\n\n\n<p>import org.slf4j.LoggerFactory;<\/p>\n\n\n\n<p>import org.w3c.dom.Document;<\/p>\n\n\n\n<p>import org.w3c.dom.Element;<br><\/p>\n\n\n\n<p>import javax.xml.parsers.DocumentBuilder;<\/p>\n\n\n\n<p>import javax.xml.parsers.DocumentBuilderFactory;<\/p>\n\n\n\n<p>import javax.xml.transform.TransformerFactory;<\/p>\n\n\n\n<p>import javax.xml.transform.dom.DOMSource;<\/p>\n\n\n\n<p>import javax.xml.transform.stream.StreamResult;<\/p>\n\n\n\n<p>import java.io.ByteArrayInputStream;<\/p>\n\n\n\n<p>import java.io.ByteArrayOutputStream;<\/p>\n\n\n\n<p>import java.io.InputStream;<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p>@Component<\/p>\n\n\n\n<p>public class MyPrefillAdaptiveForm implements DataProvider {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;private Logger logger = LoggerFactory.getLogger(MyPrefillAdaptiveForm.class);<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;public String getServiceName() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return &#8220;My Prefill Service Name&#8221;;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;}<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;public String getServiceDescription() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return &#8220;My Prefill Service&#8221;;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;}<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;public PrefillData getPrefillData(final DataOptions dataOptions) throws FormsException {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return new PrefillData() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public InputStream getInputStream() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return getData(dataOptions);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;public ContentType getContentType() {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return ContentType.XML;<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;};<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;}<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;private InputStream getData(DataOptions dataOptions) throws FormsException {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try {<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;DocumentBuilder docBuilder = docFactory.newDocumentBuilder();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Document doc = docBuilder.newDocument();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Element rootElement = doc.createElement(&#8220;data&#8221;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;doc.appendChild(rootElement);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Element name = doc.createElement(&#8220;name&#8221;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name.setTextContent(&#8220;This is Name Field&#8221;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Element title = doc.createElement(&#8220;title&#8221;);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;title.setTextContent(&#8220;This is Title Field&#8221;);<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final ByteArrayOutputStream outputStream = new ByteArrayOutputStream();<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final DOMSource source = new DOMSource(doc);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;final StreamResult outputTarget = new StreamResult(outputStream);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;TransformerFactory.newInstance().newTransformer().transform(source, outputTarget);<br><\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;InputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return inputStream;<\/p>\n\n\n\n<p>} catch (Exception e) {<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\t\tlogger.error(&#8220;Error while creating prefill data&#8221;, e);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\t\tthrow new FormsException(e);<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>&nbsp;&nbsp;&nbsp;}<\/p>\n\n\n\n<p>}<\/p>\n\n\n\n<p><br><\/p>\n\n\n\n<p><strong>Where the Prefill service option is available in form?<\/strong><\/p>\n\n\n\n<p>In the form container dialog, under Basic you can find the dropdown to select your <strong>Prefill Service.<\/strong><br><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/oRUkJd1gKMs-sIPBHfeSAFSkEA4Ysv6SAmTDpGiH1SSHvrSibwjha59fZ6cA6X3k_FNetJusY4AuPHCcifpa_l8onxeHodDEKIfuY7LlNqYx93BzvEVrm-X198KHYx8PA9lFiyW9\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>Note:-<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Name should be the same in text box dialog and as well as in Java class.<\/li><li>Your Prefill Service is shown by your description provided in java class in prefill service dropdown.<\/li><\/ul>\n\n\n\n<p>Now select your prefill service and click on preview. Now you will see pre-filled data in your text boxes as shown.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh6.googleusercontent.com\/1NuimvMxAfBHyTf60Bkle0E_G3MpoDXBRTq44lpd0wkjI38Inf1GoohmYU6BuqYXYemsVNKsgtzGbNXdnz_yQDFbqKy5mk2ixKXu9_pUykjAgxkwr2VwqOLbcNTZFKYIV5V3vzLU\" alt=\"\"\/><\/figure>\n\n\n\n<p><strong>@Reference<\/strong><\/p>\n\n\n\n<p><a href=\"https:\/\/helpx.adobe.com\/experience-manager\/6-2\/forms\/using\/prepopulate-adaptive-form-fields.html#AEMFormsprefillservice\">https:\/\/helpx.adobe.com\/experience-manager\/6-2\/forms\/using\/prepopulate-adaptive-form-fields.html#AEMFormsprefillservice<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this blog, I want to share how we can use the Prefill Service feature in adaptive forms. What is [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[295],"tags":[293,269,294],"class_list":["post-446","post","type-post","status-publish","format-standard","hentry","category-adpative-form","tag-adaptive-forms","tag-aem","tag-prefill-service-in-adaptive-forms"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"In this blog, I want to share how we can use the Prefill Service feature in adaptive forms. What is [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-02T15:20:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-09T18:24:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\" \/>\n<meta name=\"author\" content=\"Shivam Kumar Chauhan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Shivam Kumar Chauhan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\"},\"author\":{\"name\":\"Shivam Kumar Chauhan\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/b8eb4eeb9ca844d32b54de183c946afc\"},\"headline\":\"Prefill Service in Adaptive Forms\",\"datePublished\":\"2021-03-02T15:20:33+00:00\",\"dateModified\":\"2021-03-09T18:24:32+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\"},\"wordCount\":732,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\",\"keywords\":[\"Adaptive Forms\",\"AEM\",\"Prefill Service in Adaptive Forms\"],\"articleSection\":[\"Adpative Form\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\",\"name\":\"Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\",\"datePublished\":\"2021-03-02T15:20:33+00:00\",\"dateModified\":\"2021-03-09T18:24:32+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage\",\"url\":\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\",\"contentUrl\":\"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Prefill Service in Adaptive Forms\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"name\":\"AEM Blog | Lhotse Technologies\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\",\"name\":\"AEM Blog | Lhotse Technologies\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"contentUrl\":\"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png\",\"width\":539,\"height\":172,\"caption\":\"AEM Blog | Lhotse Technologies\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/b8eb4eeb9ca844d32b54de183c946afc\",\"name\":\"Shivam Kumar Chauhan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2f5546b9c2e40950ed53a7c2b059fdc37faa2a27d1faa038b2701bba8112e1ad?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2f5546b9c2e40950ed53a7c2b059fdc37faa2a27d1faa038b2701bba8112e1ad?s=96&d=mm&r=g\",\"caption\":\"Shivam Kumar Chauhan\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/shivam\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies","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:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/","og_locale":"en_US","og_type":"article","og_title":"Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies","og_description":"In this blog, I want to share how we can use the Prefill Service feature in adaptive forms. What is [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2021-03-02T15:20:33+00:00","article_modified_time":"2021-03-09T18:24:32+00:00","og_image":[{"url":"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk","type":"","width":"","height":""}],"author":"Shivam Kumar Chauhan","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Shivam Kumar Chauhan","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/"},"author":{"name":"Shivam Kumar Chauhan","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/b8eb4eeb9ca844d32b54de183c946afc"},"headline":"Prefill Service in Adaptive Forms","datePublished":"2021-03-02T15:20:33+00:00","dateModified":"2021-03-09T18:24:32+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/"},"wordCount":732,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk","keywords":["Adaptive Forms","AEM","Prefill Service in Adaptive Forms"],"articleSection":["Adpative Form"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/","url":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/","name":"Prefill Service in Adaptive Forms - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk","datePublished":"2021-03-02T15:20:33+00:00","dateModified":"2021-03-09T18:24:32+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#primaryimage","url":"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk","contentUrl":"https:\/\/lh3.googleusercontent.com\/tSoZoD_Jd1xBLmBuClTnGhgtaiqRBUJjiDSzsFpduRIATrEp2PQ9Q0JylSIesePNQQ1T3HQtNkQBQREwwf6W1tZCzfi8slL3SffIgPL4Yi5NWzMmWVGFCpp9B-DNpvAUQcXfKEkk"},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/prefill-service-in-adaptive-forms\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Prefill Service in Adaptive Forms"}]},{"@type":"WebSite","@id":"https:\/\/lhotsetechnologies.com\/blog\/#website","url":"https:\/\/lhotsetechnologies.com\/blog\/","name":"AEM Blog | Lhotse Technologies","description":"","publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/lhotsetechnologies.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization","name":"AEM Blog | Lhotse Technologies","url":"https:\/\/lhotsetechnologies.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","contentUrl":"https:\/\/lhotsetechnologies.com\/blog\/wp-content\/uploads\/2019\/07\/lhotse-logo.png","width":539,"height":172,"caption":"AEM Blog | Lhotse Technologies"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/b8eb4eeb9ca844d32b54de183c946afc","name":"Shivam Kumar Chauhan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2f5546b9c2e40950ed53a7c2b059fdc37faa2a27d1faa038b2701bba8112e1ad?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2f5546b9c2e40950ed53a7c2b059fdc37faa2a27d1faa038b2701bba8112e1ad?s=96&d=mm&r=g","caption":"Shivam Kumar Chauhan"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/shivam\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/446","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=446"}],"version-history":[{"count":6,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/446\/revisions"}],"predecessor-version":[{"id":452,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/446\/revisions\/452"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=446"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=446"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=446"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}