Clicking a button to add new Element

Hi Everyone,

I have created a reusable element which is a form in a card and I would like to be able to click a button and a new card is created, is this possible?

Screenshot 2022-06-15 161805

Above is the reusable element that I would like to create multiple of, is there a way to use the button on the element to create more?

Not sure if this could help, but you can have a try on creating a plugin to create element action and take a reference to the webpages below. And If you can find out a solution, please share to me.

Samson @ Plugin Developer

Hi Samson,

I have figured out how to create a plugin with the action to add a new element (a button),
however I don’t know how to add a reusable element.
Because plugins use plain JavaScript and a Bubble Reusable Element cant be used with document.createElement.

Will I need to create my whole element as a Plugin? Or is there something I’m missing?

I think it is ok to build your whole element as a Plugin and here is webpage which is helpful for you to do that. You can comment in my forum post below and I can have a try on it if time allowed.

This topic was automatically closed after 70 days. New replies are no longer allowed.