I need to clone columns in my app, and the cloning happens successfully. The column I am cloning contains 3 text inputs, a label, and a switch. But, I am unable to edit the text of any of the inputs in the cloned columns. For example, if I try to edit the second input in a cloned column, it will set the text of the 2nd input in the original column.
This is my cloning code:
But the problem is that there are no styling options for this. What comes out is a column I canāt see and a couple of inputs squashed together. Looks terribly ugly.
Which tells me that even though the cloning finished in your example and in my first example, the list of components didnāt update quickly enough for our other blocks to work.
@jane See my post just above this one. Any ideas why the list of components isnāt updating (my assumption) by the time the clone blockās ādoā section runs?
Thank you so much for this! Will definitely try it out in the morning. The response I am getting to my code is:
For example, I set the text of the first input in the first column to āaā. Then, I click the button and a new column gets created. When I try to change the text of the first input in this column to ābā, the text of the input in the first column gets updated to ab.
Why is this happening? The columns are getting created successfully so I donāt think that itās a problem with the code.
I simplified your project and itās still doing it. If I type in a Book Name and then click Add Book, the next characters I type in a different text input field only show up in the original Book Name text input and only a single character at a time.
I found a temporary solution:
I made a custom DVL with all my inputs, and whenever the āAddā button was clicked, I created a new row in my Data Source with blank text values. That created a new column but with blank text inputs. When any of my inputsā value was changed, I set the value of that particular cell for the RowID to the inputās text.
**Edit: Even weirder- when I click the add button, the text inputs I have filled in before get wiped clean. When I try to edit the first text input in the second DVL column, the first text input in the first DVL column changes to exactly what Iām typing.