# Save data by iterating over text

**URL:** <https://forum.bubble.io/t/save-data-by-iterating-over-text/240679>\
**Category:** Database\
**Created:** [January 9, 2023, 9:15pm UTC](https://forum.bubble.io/t/save-data-by-iterating-over-text/240679 "2023-01-09T21:15:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![a.blackout98](https://avatars.discourse-cdn.com/v4/letter/a/ee7513/32.png) [@a.blackout98](https://forum.bubble.io/u/a.blackout98)\
**Post date:** [January 9, 2023, 9:15pm UTC](https://forum.bubble.io/t/save-data-by-iterating-over-text/240679/1 "2023-01-09T21:15:34Z")

</div>

Hi everyone, i’m trying to find a way to perform this action, but i didn’t find anything on the forum.  
I want to give to my bubble app a list of links in form of text, each other separated by new lines, like this

“link1  
link2  
link3  
link4”

I would like to paste this in an input element, and bubble should iterate through the text and save each link as a different thing or a different element of a list.

How can i do something like this?

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [January 9, 2023, 9:26pm UTC](https://forum.bubble.io/t/save-data-by-iterating-over-text/240679/2 "2023-01-09T21:26:38Z")

</div>

one option is:

- create a backend workflow that accepts a text as input and add an action to create the thing you need in the database
- on your frontend in a workflow schedule the backend workflow on a list, as a list use the input value split by (press enter inside the setting of the operation to add a newline)

more info:  
[https://manual.bubble.io/core-resources/actions/custom#schedule-api-workflow-on-a-list](https://manual.bubble.io/core-resources/actions/custom#schedule-api-workflow-on-a-list)

[Operators & Comparisons - Bubble Docs](https://manual.bubble.io/core-resources/data/operations-and-comparisons#split-by)…

---

<div class="post-metadata">

**Author:** ![lachlankirkwood1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/lachlankirkwood1/32/42133_2.png) [@lachlankirkwood1](https://forum.bubble.io/u/lachlankirkwood1)\
**Post date:** [January 10, 2023, 4:09am UTC](https://forum.bubble.io/t/save-data-by-iterating-over-text/240679/3 "2023-01-10T04:09:42Z")

</div>

If you’re storing the links in your database as a list of texts, a solution could be to use a multiline input field, as well as the ‘split by’ operator when you save save the value of the input field to your database.

For the ‘split by’ operator, just add a space and it will save each new line as a separate entry.

 ![Screenshot 2023-01-10 at 2.09.07 pm](https://us1.discourse-cdn.com/bubble/original/3X/6/8/683f568a3a94e4a2a8142a8633a114a85a7bc5cd.png)

Hope this helps.

---

<div class="post-metadata">

**Author:** ![kazimdgoni](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/kazimdgoni/32/148445_2.png) [@kazimdgoni](https://forum.bubble.io/u/kazimdgoni)\
**Post date:** [January 10, 2023, 6:18am UTC](https://forum.bubble.io/t/save-data-by-iterating-over-text/240679/4 "2023-01-10T06:18:52Z")

</div>

You can also add :extractbyRegex actions after :splitby actions to meet the requirement if not fulfilling by splitting only.
