# Add (Duplicate) Line

**URL:** <https://community.thunkable.com/t/add-duplicate-line/563198>\
**Category:** Questions about Thunkable X\
**Created:** [April 11, 2020, 5:02pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198 "2020-04-11T17:02:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 11, 2020, 5:02pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/1 "2020-04-11T17:02:52Z")

</div>

Is there a block set (or round-about way) where you could essentially add a duplicate line? Like lets say for a list app, instead of having the lines in place the person can input text could you have a single line followed by a “Add new button” that when clicked a duplicate text entry line pops up under the first?

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 12, 2020, 7:08pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/2 "2020-04-12T19:08:40Z")

</div>

This has been my idea so far

 ![Annotation 2020-04-12 195004](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/8/48b6dd64cc85e6863997c15503766a319c196efa.jpeg)

However, in the list, it only shows the first Medication I enter (Not any subsequent ones)

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 13, 2020, 5:36pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/3 "2020-04-13T17:36:46Z")

</div>

So now I am here. I created a separate page to add medications.

 ![Annotation 2020-04-13 181616](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/6/267cbc3015cc6062bcf5c9011b1697d47fbe4030.jpeg)

And then this is how I am trying to get it viewed  
 ![Annotation 2020-04-13 181738](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/6/c61d08ac1c87f1045ace86fdfe5b23fe1ec5a3ea.jpeg)

This lets me add unique medications and form a list, the only problem is I need the medications to be unique to a name. I tried using the “in list \_\_\_ get # Index” but that didnt work either

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 13, 2020, 5:49pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/4 "2020-04-13T17:49:45Z")

</div>

you mean you can’t make a duplicate?

what happens if you try to duplicate the item? can you print out your list to a label instead of the listviewer

---

<div class="post-metadata">

**Author:** ![huntermclarkn](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/huntermclarkn/32/66310_2.png) [@huntermclarkn](https://community.thunkable.com/u/huntermclarkn)\
**Post date:** [April 13, 2020, 6:16pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/5 "2020-04-13T18:16:32Z")

</div>

Not a text duplicate, but a line duplicate. So in a sense what I am trying to do is the main screen of my app will have a list of names the user has added. When one of those names is clicked, other data will come up (date of birth and things like that). I also want to have a place with that other data that is a list of medications they may be on so there would be the main name list and each name would also be able to have (or not have) a medication list unique to them.

My original plan was to have this medication list be created when the user was input all the other medication. They would select yes for medication and a text entry line would pop up. I was wondering if I could get another text line to appear when they clicked a particular button so they could add as many medications as needed. However, I didnt want to have to code say 10 invisible lines but was rather looking to see if I could in a sense “If button click do duplicate X line and save text” I realized I didn’t think this was possible and it would lead to other issues down the line

Where I am at now is still trying to get these unique lists within each name but I didn’t want to spam the feed by adding a complete new Topic soI just continued the topic with what I say as my way around.

I would prefer it being a list so that individual medications can be deleted and eventually notifications can be added.

I guess in a sense I am trying to get unique nested lists and where I am at now, gets me a nested list, but I am working on the unique part

---

<div class="post-metadata">

**Author:** ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)\
**Post date:** [April 13, 2020, 6:49pm UTC](https://community.thunkable.com/t/add-duplicate-line/563198/6 "2020-04-13T18:49:10Z")

</div>

Hey!

Check out NestdListR here

> **[jaredgibb.xyz](http://jaredgibb.xyz/thunkable/sample-apps)**
>
> This domain may be for sale!

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:39am UTC](https://community.thunkable.com/t/add-duplicate-line/563198/7 "2024-11-08T11:39:03Z")

</div>


