DUPLICATE: Same IDs in elements when duplicating a template

Browser: Brave
OS: Windows
URL: No URL

Hello :wave:

I noticed that, when duplicating a template, the elements inside the duplicated template maintain the same IDs as the original template. I consider this a bug because if the user doesn’t noticed it and leaves this unchanged, it would mean repeated IDs inside the same page, which goes against HTML specifications.

Also, this behaviour can result in unexpected issues when styling the ID level. For example: I created a popup and realized that I needed three of them each one with a different colour heading. I duplicated the template, and styled the color of the heading in the ID level, but in the frontend was not working, until I realized that the three headings were having the same ID and the styling was conflicting. The solution was to manually change the ID to every element in the template to make sure no styling would conflict.

Love :green_heart:

Hi AarĂłn,
Thanks so much for your report!

We have already received several reports (about forms, popups, save as template…) and are working on a solution.

Current workaround: Instead of “save as template”, copy all elements and paste them so the elements get a unique ID.

I’ll close this thread, but add it to the task which already contains a bunch of related reports.

Best regards,
timmse

1 Like