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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

Top Solution Authors
Top Kudoed Authors
Users online (65,660)