Expand my Community achievements bar.

Submissions are now open for the 2026 Adobe Experience Maker Awards

Has Adobe Target deprecated inserting multiple HTML elements with "Add Before" / "Add After" in the VEC?

Avatar

Level 1

Hi,

I’ve run into an issue with the Visual Experience Composer (VEC). Previously, I was able to use the “Add Before” and “Add After” features to insert multiple HTML elements at once (for example, multiple HTML elements added after an element).

Recently, whenever I try this, Target throws an error saying that more than one element is being added. The only way to proceed is to split the HTML into separate insertions (one element at a time), which is tedious and error-prone.

I’ve checked the latest Adobe Target release notes, but I couldn’t find any mention of this being an intentional deprecation or limitation.

So my questions are:

  1. Has Adobe officially deprecated inserting multiple elements at once via “Add Before” / “Add After”?

  2. If yes, could you point me to the official documentation or release notes that confirm this change?

  3. If not, is this a bug in the new VEC, and should we open a support ticket?

This change is impacting our workflow, so any clarification would be very helpful.

Thanks in advance!

4 Replies

Avatar

Community Advisor

I encourage you to also post it in this thread: https://experienceleaguecommunities.adobe.com/t5/adobe-target-discussions/announcement-facing-issues...

@Gokul_Agiwal is putting together a list to share with engineering and gather feedback.


I share weekly Adobe tips on LinkedIn—connect with me!

Every Wednesday: "Something a client recently asked..."

LinkedIn Profile

Avatar

Employee

Hello @kandersen 

The Insert Before / After option is still present in the new VEC, just that you need to select a component to insert first and than hover over the elements int he page. The VEC will display Insert Before / After button above and below the hovered element.

cristinel_0-1757682652299.png

/Cristinel

 

Avatar

Level 1

Hi Cristinel,

Thanks for confirming that the Insert Before / Insert After options are still present in the VEC — that part is clear to us and not in question.

The issue I’m raising is specifically about inserting multiple HTML elements at once. Previously, this was possible using the Add Before / Add After feature, but now Target throws an error if more than one element is included in the insertion.

I’ve attached a video in the original post that shows the behavior and a screenshot in this reply with the error displayed — this error didn’t exist before and only appeared very recently. Could you please review it and confirm whether:

  • This is an intentional change (deprecation), or

  • This is a new bug?

It would help a lot to know whether we should open a support ticket for this.

Thanks again for looking into it!

AndresRe_0-1757685883432.png

 

Avatar

Community Advisor

Hello @AndresRe 

CC: @cristinel @kandersen  

 

Thank you for details explanation about the issue you're facing. 

 

I tried to reproduce the issues at my end - see the similar screenshot below having the error called "Multiple elements found in the provided HTML content" 

 

Gokul_Agiwal_0-1757855072420.png

 

After investigation - I got to know the root cause of the error.  

 

Ideally, Adobe Target expects the entire html content to be wrapped in a single root HTML element.
For example, if your html content includes like below :

<head>
	<title>Page Title</title>
</head>
<body>
	<h1>This is a Heading</h1>
	<p>This is a paragraph.</p>
</body>

In above case you're adding elements without any parent level element which violates Target's requirement.


You can try by wrapping everything inside one parent <div> element with id as an attribute, for example like below : 

<div id="target_content">
	<head>
			<title>Page Title</title>
	</head>
	<body>
		<h1>This is a Heading</h1>
		<p>This is a paragraph.</p>
	</body>
</div>

This ensures the html content has exactly one HTML element at the top level, which satisfies the validation rule. 

 

Also just fyi - In case if you missed the id attribute for the div or any other top level element, then you will see the below error 

 

Gokul_Agiwal_1-1757855646987.png

 

So once you added all your HTML content into one parent element with unique id attribute then hopefully your issues get resolved. 

 

Hope this helps.  Feel free to post if you're seeing any other issues. 

 

Thank you. 

Gokul