{"id":33,"date":"2014-10-07T09:40:00","date_gmt":"2014-10-07T09:40:00","guid":{"rendered":"https:\/\/scgindia.in\/lhotsetechnologies\/dev\/2014\/10\/07\/pre-populated-multifield-in-aem\/"},"modified":"2020-01-17T12:41:54","modified_gmt":"2020-01-17T12:41:54","slug":"pre-populated-multifield-in-aem","status":"publish","type":"post","link":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/","title":{"rendered":"Pre &#8211; Populated Multifield in AEM"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">During my project work, I got a task where I have to prepopulate a multifield with some predefined values. i.e when a multifield is loaded first time, It should be displayed with some default values. In this post, I will discuss, How I achieve this\u00a0functionality. So\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">Agenda of this post<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>Prepopulate Multifield with default values<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">For doing this, I am creating a project using\u00a0<b>adobe maven\u00a0archetype<\/b> as I created in my last post. It create a folder structure under <b>app<\/b> directory as shown below &#8211;\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\"><span style=\"color: #274e13;\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\" \/><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Here I <b>create<\/b> a <b>component<\/b> named as <b>blog<\/b>.\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b><i>This component contains a dialog having a tab with a multifield &amp; one listener (nt:unstructured) node under cq:dialog node.<\/i><\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">So the final structure looks like &#8211;\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/3.bp.blogspot.com\/--JigFgmDh_8\/VDOHwTYk5wI\/AAAAAAAAAxU\/GXHnHTf6JQg\/s1600\/image_2.png\"><span style=\"color: #274e13;\"><img decoding=\"async\" src=\"http:\/\/3.bp.blogspot.com\/--JigFgmDh_8\/VDOHwTYk5wI\/AAAAAAAAAxU\/GXHnHTf6JQg\/s1600\/image_2.png\" \/><\/span><\/a><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">multifield is created with properties\u00a0<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>xtype = multifield<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>jcr:primaryType = cq:Widget<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>name = .\/names<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>fieldLabel = Names<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">fieldconfig node have properties\u00a0<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>xtype = textfield<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>jcr:primaryType = nt:unstructured<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">Till now what ever we create is simple work which is required to create a simple multifield.\u00a0<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b>Key point is &#8211;\u00a0<\/b><\/span><br \/>\n<span style=\"color: #274e13;\">Now the original work for starts for prepopulating multifield. As we create on additional <i><b>node named as listeners under dialog node, jcr:primaryType of this node is nt:unstructured.<\/b><\/i><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">here I define a function named as loadcontent as type string and It&#8217;s values is a javascript function that set&#8217;s the default value for this multifield. the function value is &#8211;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"text-align: justify;\"><b><span style=\"color: #660000;\">function(dialog) {\u00a0<\/span><\/b><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> var field = dialog.getField(&#8216;.\/names&#8217;);\u00a0<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> if(field.getValue()){<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> var values = [&#8220;Pre&#8221;, &#8220;Populated&#8221;, &#8220;Multifield&#8221;];<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> field.setValue(<\/b><\/span><b style=\"color: #274e13;\">values<\/b><span style=\"color: #274e13;\"><b>);<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> }; <\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\"><b> return true;<\/b><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #274e13;\">this node&#8217;s properties look like-<\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/1.bp.blogspot.com\/-bzyNoJ-gZmg\/VDOKhDUssJI\/AAAAAAAAAxg\/hgzre32YQXM\/s1600\/image_3.png\"><span style=\"color: #274e13;\"><img decoding=\"async\" src=\"http:\/\/1.bp.blogspot.com\/-bzyNoJ-gZmg\/VDOKhDUssJI\/AAAAAAAAAxg\/hgzre32YQXM\/s1600\/image_3.png\"\/><\/span><\/a><\/div>\n<\/div>\n<p><span style=\"color: #274e13;\">Now Everything is done go to a test page <b>drop this component &amp; open dialog<\/b>. You will see your multifield is prepopulated as desired.<\/span><br \/>\n<span style=\"color: #274e13;\"><br \/>\n<\/span><span style=\"color: #274e13;\">final output is &#8211;<\/span><\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" href=\"http:\/\/2.bp.blogspot.com\/-qv_5NDcICQc\/VDOLbIoA5hI\/AAAAAAAAAxo\/JuLBstDoigs\/s1600\/final.png\"><span style=\"color: #274e13;\"><img decoding=\"async\" src=\"http:\/\/2.bp.blogspot.com\/-qv_5NDcICQc\/VDOLbIoA5hI\/AAAAAAAAAxo\/JuLBstDoigs\/s1600\/final.png\" \/><\/span><\/a><\/div>\n<\/div>\n<div style=\"orphans: auto; text-align: justify; text-indent: 0px; widows: auto;\">\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><b style=\"background-color: #eefff0; font-family: 'Times New Roman', Times, FreeSerif, serif; font-size: 15px; line-height: 21.559999465942383px;\"><span style=\"color: #660000;\">github repository link<\/span><\/b><\/div>\n<div style=\"margin: 0px;\"><b><i><span style=\"color: #666666;\"><a href=\"https:\/\/github.com\/vietankur009\/components.git\">https:\/\/github.com\/vietankur009\/components.git<\/a><\/span><\/i><\/b><\/div>\n<div style=\"-webkit-text-stroke-width: 0px; font-family: 'Times New Roman'; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; text-transform: none; white-space: normal; word-spacing: 0px;\"><span style=\"color: #274e13;\">\u00a0<\/span><\/div>\n<p><strong>Happy Coding<\/strong><br \/>\n<strong>Namah Shivay<\/strong><\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>During my project work, I got a task where I have to prepopulate a multifield with some predefined values. i.e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,82,119,120,121,118,122],"tags":[],"class_list":["post-33","post","type-post","status-publish","format-standard","hentry","category-aem","category-cq5","category-cq5-multifield","category-multified-in-aem","category-multifield","category-prepopulated-multified-in-cq5","category-prepopulated-multifield-in-aem"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pre - Populated Multifield in AEM - 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\/pre-populated-multifield-in-aem\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pre - Populated Multifield in AEM - AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"og:description\" content=\"During my project work, I got a task where I have to prepopulate a multifield with some predefined values. i.e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\" \/>\n<meta property=\"og:site_name\" content=\"AEM Blog | Lhotse Technologies\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-07T09:40:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-17T12:41:54+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\" \/>\n<meta name=\"author\" content=\"Team Lhotse\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Team Lhotse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\"},\"author\":{\"name\":\"Team Lhotse\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d\"},\"headline\":\"Pre &#8211; Populated Multifield in AEM\",\"datePublished\":\"2014-10-07T09:40:00+00:00\",\"dateModified\":\"2020-01-17T12:41:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\"},\"wordCount\":305,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\",\"articleSection\":[\"AEM\",\"CQ5\",\"CQ5 Multifield\",\"Multified in AEM\",\"Multifield\",\"prepopulated multified in CQ5\",\"prepopulated multifield in AEM\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\",\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\",\"name\":\"Pre - Populated Multifield in AEM - AEM Blog | Lhotse Technologies\",\"isPartOf\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\",\"datePublished\":\"2014-10-07T09:40:00+00:00\",\"dateModified\":\"2020-01-17T12:41:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage\",\"url\":\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\",\"contentUrl\":\"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/lhotsetechnologies.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pre &#8211; Populated Multifield in AEM\"}]},{\"@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\/fd7bee89b050d7c7195fc75b681b053d\",\"name\":\"Team Lhotse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g\",\"caption\":\"Team Lhotse\"},\"url\":\"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pre - Populated Multifield in AEM - 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\/pre-populated-multifield-in-aem\/","og_locale":"en_US","og_type":"article","og_title":"Pre - Populated Multifield in AEM - AEM Blog | Lhotse Technologies","og_description":"During my project work, I got a task where I have to prepopulate a multifield with some predefined values. i.e [&hellip;]","og_url":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/","og_site_name":"AEM Blog | Lhotse Technologies","article_published_time":"2014-10-07T09:40:00+00:00","article_modified_time":"2020-01-17T12:41:54+00:00","og_image":[{"url":"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png","type":"","width":"","height":""}],"author":"Team Lhotse","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Team Lhotse","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#article","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/"},"author":{"name":"Team Lhotse","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/fd7bee89b050d7c7195fc75b681b053d"},"headline":"Pre &#8211; Populated Multifield in AEM","datePublished":"2014-10-07T09:40:00+00:00","dateModified":"2020-01-17T12:41:54+00:00","mainEntityOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/"},"wordCount":305,"commentCount":0,"publisher":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#organization"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage"},"thumbnailUrl":"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png","articleSection":["AEM","CQ5","CQ5 Multifield","Multified in AEM","Multifield","prepopulated multified in CQ5","prepopulated multifield in AEM"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/","url":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/","name":"Pre - Populated Multifield in AEM - AEM Blog | Lhotse Technologies","isPartOf":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage"},"image":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage"},"thumbnailUrl":"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png","datePublished":"2014-10-07T09:40:00+00:00","dateModified":"2020-01-17T12:41:54+00:00","breadcrumb":{"@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#primaryimage","url":"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png","contentUrl":"http:\/\/3.bp.blogspot.com\/-XVK6MPEiAVY\/VDOGn9GC33I\/AAAAAAAAAxM\/8O1woFIBa6k\/s1600\/image_1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/lhotsetechnologies.com\/blog\/pre-populated-multifield-in-aem\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/lhotsetechnologies.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Pre &#8211; Populated Multifield in AEM"}]},{"@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\/fd7bee89b050d7c7195fc75b681b053d","name":"Team Lhotse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/lhotsetechnologies.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/?s=96&d=mm&r=g","caption":"Team Lhotse"},"url":"https:\/\/lhotsetechnologies.com\/blog\/author\/team-lhotse\/"}]}},"_links":{"self":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/33","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\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/comments?post=33"}],"version-history":[{"count":5,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions"}],"predecessor-version":[{"id":572,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/posts\/33\/revisions\/572"}],"wp:attachment":[{"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/media?parent=33"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/categories?post=33"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lhotsetechnologies.com\/blog\/wp-json\/wp\/v2\/tags?post=33"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}