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

Community site session details

Session Id : af2U6bpZGWso1OeUyhALt8
Power Apps - Building Power Apps
Unanswered

Label's text formatting with new line on a custom data card in PowerApps Canvas app

Like (0) ShareShare
ReportReport
Posted on 10 May 2021 04:19:56 by 195

Hi,

I am building a canvas app using dataverse for teams. On Edit form, I have a custom data card with label on it. I am trying to set label's text property with a message to be shown in multi line. So I am writing like below on Text property :

"First Line 1" & Char(10) & "Second Line 2"

But its appearing in single line.

TextofLabelOnaCustomDataCard.PNG

 

 If I use  label on form without data card, text is appearing in two lines.

TextonLabel.PNG

 

I am not finding a way to show this as a multi line text on custom data card with label. Here I am trying this to show validation messages on a Edit form which is connected to data verse.

 

Can some one suggest how to do this.?

 

Thanks,

Purna

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 15 May 2021 at 08:12:23
    Re: Label's text formatting with new line on a custom data card in PowerApps Canvas app

    Hi @PURNA429 ,

    Just checking if you got the result you were looking for on this thread. Happy to help further if not.

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 10 May 2021 at 21:12:07
    Re: Label's text formatting with new line on a custom data card in PowerApps Canvas app

    Hi @PURNA429 ,

    I just tested it here and putting shift-enter in the middle of the conditional text produced the desired result

    WarrenBelz_0-1620681058519.png

    WarrenBelz_1-1620681093585.png

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

     

     

     

     

  • PURNA429 Profile Picture
    195 on 10 May 2021 at 14:42:59
    Re: Label's text formatting with new line on a custom data card in PowerApps Canvas app

    Hi @WarrenBelz ,

     

    Thanks for your response. But this is not working with dynamic text with a condition like this.

     

    lblErrorMessage.Text = 

    If(DataCardValue2.Selected.Value='Ack_Policy (Environments)'.No,"Please acknowledge that, you are aware of policy")&Char(10)&
    If(DataCardValue3.Selected.Value='Ack_ReadDoc (Environments)'.No,"Please acknowledge that, you read the documentation ") 

     

    Thanks

    Purna

  • WarrenBelz Profile Picture
    148,894 Most Valuable Professional on 10 May 2021 at 04:28:08
    Re: Label's text formatting with new line on a custom data card in PowerApps Canvas app

    Hi @PURNA429 ,

    Type in the Text area 

    "First Line 1 <Shift-Enter> Second Line 2"

    where <Shift-Enter> is done on your keyboard.

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Loading complete