cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

HTML formatting with variables

 I think I already know the answer but here goes anyway.

 

I have a validation on one of my apps that will present data from a variable.   I can display all the text and the variable in either a label or an html text box.

 

I want to go one step further using the HTML to bold and underline the variable content but so far haven't been able to do it without it shouting at me.

 

I really don't want to  use 3 separate labels to do this but I think I might have to.

 

This does NOT work:   "Text"  & <b>varXXX</b> & "Text"   and this does NOT work:   "Text" <b> & varXXX & </b> "Text"

 

Is it possible to do what I am trying to do in the HTML text box or am I stuck with using 3 separate labels?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User III
Dual Super User III

It should be possible, but the second example has the quotes in the wrong place.  Try this

"Text <b>" & varXXX & "</b> Text"


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

2 REPLIES 2
Highlighted
Dual Super User III
Dual Super User III

It should be possible, but the second example has the quotes in the wrong place.  Try this

"Text <b>" & varXXX & "</b> Text"


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Highlighted

That's the one configuration I didn't think of.    You Rock!

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (8,512)