Repeating Controls within a view

  • 27 June 2019
  • 3 replies
  • 27 views

Badge +2

How can I repeat a control/set of controls on a view by a press of a button with some rules?

 

Thanks

Steve


3 replies

Badge +3

Hi Steve,


Would you be able to elaborate a bit more on the question or provide another example?

Kind regards,


Hendrix

Badge +2

Hi Hendrix, attached is a screenshot of various textboxes with labels and an "add" button, I would like the users to be able to press the "add" button which will then duplicate all the labels and textboxes in a row below the first one. It's behaviour is similar to a repeating section in an aspx page.

 

Thanks

Steve


If I'm reading your question correctly I had a similar scenario. Only way I could see to do it was by creating a table with the boxes in and hiding it everytime add is pressed it would show the table. THis would be fine if there is only going to be one more instance.

However in my scenario there could be unlimited so I saved it to a smartobject and had a list view which displayed the data below and then from there it cleared the form so a second, third, fourth etc person could be added.

Hope this helps somehow

Reply