cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PAB
Level: Powered On

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
PowerApps Staff cherie
PowerApps Staff

Re: Format Commas to start a new line

bean
Level 8

Re: Format Commas to start a new line

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
PowerApps Staff cherie
PowerApps Staff

Re: Format Commas to start a new line

bean
Level 8

Re: Format Commas to start a new line

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,575)