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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,665)