cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lee123
Frequent Visitor

Odd behaviour with htmltext control

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?

1 REPLY 1
v-bofeng-msft
Community Support
Community Support

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

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,940)