cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PURNA429
Resolver II
Resolver II

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

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

4 REPLIES 4
WarrenBelz
Super User
Super User

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.

 

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

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.

 

 

 

 

 

WarrenBelz
Super User
Super User

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.

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,266)