An error occurred while processing the template.
Java method "com.atkearney.dot.com.forms.portlet.service.FormsPortletService.getFormData(String, com.liferay.portal.kernel.json.JSONObject)" threw an exception when invoked on com.atkearney.dot.com.forms.portlet.service.FormsPortletService object "[email protected]39a6a471"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: ${FormsPortletService.getFormData(rec... [in template "20116#20152#932918" at line 37, column 32] ----
1<#assign DDLRecordSetLocalService = serviceLocator.findService("com.liferay.dynamic.data.lists.service.DDLRecordSetLocalService")/>
2<#assign PropertyFactoryUtil = serviceLocator.findService("com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil") />
3<#assign GroupLocalService = serviceLocator.findService("com.liferay.portal.kernel.service.GroupLocalService")>
4<#assign JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")>
5<#assign JSONFactory = serviceLocator.findService("com.liferay.portal.kernel.json.JSONFactory")/>
6<#assign FormsPortletService = serviceLocator.findService("com.atkearney.dot.com.forms.portlet.service.FormsPortletService")/>
7
8
9<#assign
10article = JournalArticleLocalService.getLatestArticle(groupId,.vars['reserved-article-id'].data)
11recordSetUUID = article.getExpandoBridge().getAttribute("Form")
12/>
13
14<#if PullUp?? && PullUp.getData() == "true">
15 <#assign class = "before-minus-60-px-desktop before-minus-20-px-mobile" />
16<#else>
17 <#assign class = "" />
18</#if>
19
20<#if FormTitle?? && FormTitle.getData()?has_content>
21 <#assign formTitle = FormTitle.getData()!"Contact" />
22<#else>
23 <#assign formTitle = "Contact" />
24</#if>
25
26<#assign buttonId = "button_" + randomNamespace />
27
28<div class="atk-container">
29 <div class="atk-row">
30 <div class="d-12-col t-8-col p-6-col">
31 <div id="${buttonId}" class="${class}"></div>
32 </div>
33 </div>
34</div>
35
36<script>
37 var formData = JSON.parse('${FormsPortletService.getFormData(recordSetUUID, null).toString()?js_string}');
38 formData.title = "${formTitle}";
39
40 var componentData = {
41 formData: formData
42 };
43
44 <#if Sector??>
45 var sector = '${Sector.getData()?js_string}';
46 <#else>
47 var sector = '';
48 </#if>
49
50 <#if URL?? && URL.getData()?has_content>
51 <#if Style?? && Style.getData() == "Underline">
52 ATK.React.Component.ExpandingTallUnderline('${buttonId}', '${ButtonText.getData()?js_string}', 'heading3', 'black', 'yellow', '${URL.getData()?js_string}');
53 <#else>
54 ATK.React.Component.HighlightButton('${buttonId}', '${URL.getData()?js_string}', '${ButtonText.getData()?js_string}');
55 </#if>
56 <#else>
57 <#if Style?? && Style.getData() == "Underline">
58 ATK.React.Component.ExpandingUnderlineLinkModal('${buttonId}', '${ButtonText.getData()?js_string}', 'heading3', 'black', 'yellow', sector, 'FORM', componentData);
59 <#else>
60 ATK.React.Component.HighlightButton('${buttonId}', null, '${ButtonText.getData()?js_string}', true, 'FORM', componentData, sector);
61 </#if>
62 </#if>
63
64</script>