-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 7.2.X, Master
-
Fix Version/s: 7.2.10 DXP FP6, 7.2.X, 7.3.3 CE GA4, 7.3.10 DXP GA1, Master
-
Component/s: Forms
-
Labels:
-
Branch Version/s:7.2.x
-
Backported to Branch:Committed
-
Fix Priority:3
-
Git Pull Request:
Reproduction Steps:
- Set up DXP 7.2 and log in as admin
- Put an Asset Publisher on a test page
- Go to Content & Data / Forms and add a new form, including a simple text field and publish. Copy the form ID for later use.
- Go to Content & Data / Web Content and create a new web content structure with a text field.
- Go to this field's Settings tab and set its Field Label attribute to 'FormId' (the Name attribute shall be changed automatically, accordingly).
- Add a new template for this structure with the following source:
<#if FormId.getData()?has_content> <@liferay_portlet["runtime"] defaultPreferences=freeMarkerPortletPreferences.getPreferences({ "groupId": "${scopeGroupId}", "formInstanceId": "${FormId.getData()}" }) portletName="com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormPortlet" instanceId="EVENT_FORM_${.vars['reserved-article-id'].data}" /> </#if>
- Uncheck the "cacheable" checkbox for the template.
- Create a new web content from this structure and insert the form's ID from step 3 and publish. (On 7.2.x, it can be found at the Forms list and on master it can be copied from the form's 'Copy URL' section for example).
- Go to the test page's Asset Publisher and open the test web content by clicking on its title.
Current Behavior:
The form is displayed within the web content, once.
Expected Behavior:
The form is actually duplicated: it is displayed in the footer section as well.
Reproducible on:
DXP 7.2 + dxp-4
7.2.x-private@d2bd0d45e0b9dd823cc938e3aab22b36e4a575ca
master-private@6b7088213fadb5662e5430b6b70f724a686d1ab4