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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Odd behaviour with htm...
Power Apps
Unanswered

Odd behaviour with htmltext control

(0) ShareShare
ReportReport
Posted on by 27

Hi I've got an HTMLtext control that I'm populating with a formula

 

// turn each name into a line and look up the regions/location field in contacts for that name
Concat (
namesPickerEditIntsCombo.SelectedItems.Value, Value & " - " &
LookUp(TestContacts, Value = FullName).Notes & "<br>")

 

What I get is the result of the lookup, but the "Value & " - " &" is placed outside of the DIV tags in the HTML produced and is not rendered in the box. I want it to be rendered.

 

Any ideas?

Categories:
I have the same question (0)
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @Lee123 :

    Could you tell me what the meaning of "outside of the DIV tags in the HTML produced and is not rendered in the box" is?Could you describe your problem in detail and provide a complete HTML code?

    I've made a test but did not encounter any abnormalities:

    According to the formula you provided

    Concat (
    namesPickerEditIntsCombo.SelectedItems.Value, Value & " - " &
    LookUp(TestContacts, Value = FullName).Notes & "<br>")

    , you should be able to get such a string

    "name1-note1<br>name2-note2<br>name3-note3<br>".

    I added a HtmlText control and set it's HtmlText property to:

    "<div>Div1</div><div><p>Div2</p>name1-note1<br>name2-note2<br>name3-note3<br></div><div>Div3</div>"

    1.PNG

    Best Regards,

    Bof

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 401 Most Valuable Professional

#2
11manish Profile Picture

11manish 201 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard