From 9d09b84622a86ad38764c2bff5fabd4e40b124dc Mon Sep 17 00:00:00 2001 From: Alex Carol Date: Sat, 21 Dec 2024 09:02:03 +0100 Subject: [PATCH] Remove divId from form block (passing it as meta parameter) --- tools/importer/import.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/importer/import.js b/tools/importer/import.js index d7fde9e4..17e666e5 100644 --- a/tools/importer/import.js +++ b/tools/importer/import.js @@ -505,7 +505,6 @@ function form(main, pathname) { const formProps = looseJsParse(jsString); const fields = { - divId: formProps.divId, formName: formProps.formName, formModalLookup: formProps.formModalLookup, pardotHandler: formProps.pardotHandler, @@ -525,7 +524,9 @@ function form(main, pathname) { const formParent = formEl.parentElement; - // TODO only add to metadata when moving form to a fragment => and then remove it from the fragment divId + // TODO only add to metadata when moving form to a fragment + // and then remove it from the fragment divId + // but if not possible, this is fine preprocessMetadata.formDivId = fields.divId; const ctaGroup = getPageCTAGroup(pathname);