add block pannels dynamically


I have a situation, when I clicked on a button, I need to add a new block panel, that already displayed in the portlet.

There will be one block panel with some fields from database is displayed there when the page loads. I need to create the same type, when I click on the button below it.

Any ides for doing this?


Joby Joseph

Iā€™m not sure i fully understand the use-case. Do you want to have the ability to click a ā€˜+ā€™ sign and create a new row of inputs, or is it just a situation where you want to hide and show a panel based on user input?