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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Single Line Text Label
Power Apps
Answered

Single Line Text Label

(0) ShareShare
ReportReport
Posted on by 8

I have a text label using a gallery to get the value for the text. Some of them end up having unwanted line breaks. Is there any way to force the text to be single line while still using text label rather than using a text input field?

Categories:
I have the same question (0)
  • Micky Profile Picture
    365 Moderator on at

    May I ask what is the data source of your gallery? Also, if you could share screenshot that would be very helpful.

  • MayaLewis33 Profile Picture
    8 on at

    The galley's data source is a custom connector to an API. I don't have control over how the data is received from the API, but I am hoping there's a way to format it through power apps to remove the line breaks so it can all be in one line

    MayaLewis33_0-1707413320285.png



    This is the actual data from the API that it is receiving

    MayaLewis33_1-1707413395197.png

     

     

  • Micky Profile Picture
    365 Moderator on at

    You can try using this.

    Substitute(text,"\n","")
  • MayaLewis33 Profile Picture
    8 on at

    Still has the same issue

  • Verified answer
    Micky Profile Picture
    365 Moderator on at

    How about this one.

    Substitute(text,Char(10),"")
  • MayaLewis33 Profile Picture
    8 on at

    Yes this works, thank you very much

  • Micky Profile Picture
    365 Moderator on at

    You're welcome.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard