diff --git a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-web/src/main/resources/META-INF/resources/js/ddm_form.js b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-web/src/main/resources/META-INF/resources/js/ddm_form.js
index 76df7fb7d883b2f8b6c9d07e844f60c4e748d3c7..042fb183c266eab8c2fd3382543fb7f76ab33a3d 100644
--- a/modules/apps/dynamic-data-mapping/dynamic-data-mapping-web/src/main/resources/META-INF/resources/js/ddm_form.js
+++ b/modules/apps/dynamic-data-mapping/dynamic-data-mapping-web/src/main/resources/META-INF/resources/js/ddm_form.js
@@ -274,7 +274,12 @@ AUI.add(
 
 				var container = instance.get('container');
 
-				portletURL.setDoAsGroupId(instance.get('doAsGroupId'));
+				var dataType = instance.get('dataType');
+
+				if (dataType && dataType !== 'html') {
+					portletURL.setDoAsGroupId(instance.get('doAsGroupId'));
+				}
+
 				portletURL.setLifecycle(Liferay.PortletURL.RESOURCE_PHASE);
 				portletURL.setParameter('fieldName', instance.get('name'));
 				portletURL.setParameter('mode', instance.get('mode'));