Duplicating whole group successfully

Home Forums Quform WordPress Duplicating whole group successfully

This topic is: not resolved
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #27050
    starflix
    Participant

    Hello, I would like to create multiple groups using javascript. So for now I have one group of content and I want to duplicate it X amount of times with different labels. Is it possible? I searched for solution and found old answer that it was being implemented. LINK

    I tried doing it like this

    	const htmlParent = document.querySelector('.quform-child-elements');
    	const x = document.querySelector('.quform-element-3_107');
    	
    	for(let i = 0; i < 5; i++) {
    		const clonedNode = x.cloneNode(true);
    		
    		x.appendChild(clonedNode);
    	}
    

    but naturally it gives me a lot of errors because ID’s cannot be used multiple times per page.

    Thank you in advance

    #27057
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy