web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Save data in columns f...
Power Apps
Answered

Save data in columns from multipleline textinput

(0) ShareShare
ReportReport
Posted on by 66

Hi,

 

What I have is a TextInput with multiple lines like this:

Color 1

Color 2

Color 3

Color 4

Color 5

 

What I want to do is save each line a specific column of a collection, like:

 

C1C2C3C4C5
Color 1Color 2Color 3Color 4Color 5

 

Any ideas of how can I do this?

 

Thanks for your help guys.

 

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,382 Most Valuable Professional on at

    Hi @CP0822 ,

    You can do a collection using Split and the character for a line break Char(10) - I will call your field TextInput1

    ClearCollect(
     colColors, 
     Split(
     TextInput1.Text,
     Char(10)
     )
    )

    colColors will have all your values as separate items. 

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @CP0822 ,

    Do you want to save each line data within the Multiple Line Text Input into individual columns in a collection?

     

    Based on the needs that you mentioned, I have made a test on my side, please take a try with the following workaround:

    2.JPG

     

    3.JPG

    Set the OnSelect property of the "Collect" button to following:

    Collect(
     Collection1, 
     {
     C1: Last(FirstN(Split(TextInput1.Text, Char(10)),1)).Result,
     C2: Last(FirstN(Split(TextInput1.Text, Char(10)),2)).Result,
     C3: Last(FirstN(Split(TextInput1.Text, Char(10)),3)).Result,
     C4: Last(FirstN(Split(TextInput1.Text, Char(10)),4)).Result,
     C5: Last(FirstN(Split(TextInput1.Text, Char(10)),5)).Result
     }
    )

    when you press the "Collect" button, the collection1 would be populated as below:

    4.JPG

     

    Best regards,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard