cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PAB
Advocate III
Advocate III

Format Commas to start a new line

Hi,

 

If I have a data field that comes into PowerApps as a comma delineated list, is there a way to seperate this into a list that is formatted so that each comma starts a new line?

 

Example:

Input:

Water, Lemon, Glass

Output:

Water

Lemon

Glass

 

Thank you for any suggestions!

2 ACCEPTED SOLUTIONS

Accepted Solutions
cherie
Power Apps
Power Apps

bean
Continued Contributor
Continued Contributor

Set the text input's on change to 

ClearCollect(items, TrimEnds(Split(TextInput1.Text, ",")))

Then insert a gallery and set Items to items.

 

list.png

 

Hope this helps. 

 

Sean

View solution in original post

2 REPLIES 2
cherie
Power Apps
Power Apps

bean
Continued Contributor
Continued Contributor

Set the text input's on change to 

ClearCollect(items, TrimEnds(Split(TextInput1.Text, ",")))

Then insert a gallery and set Items to items.

 

list.png

 

Hope this helps. 

 

Sean

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,476)