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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (73,488)