cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JR-BejeweledOne
Super User
Super User

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?



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.
1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
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
Pstork1
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

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



If you like this post, give it a Thumbs up. If it answered your question, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

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