Skip to content

Commit

Permalink
Remove divId from form block (passing it as meta parameter)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcarol committed Dec 21, 2024
1 parent b089756 commit 9d09b84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tools/importer/import.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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);
Expand Down

0 comments on commit 9d09b84

Please sign in to comment.