HTML Content : Embedded from Column

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
User avatar
Jean-Philippe Tremblay
Posts: 8
Joined: Sun Dec 04, 2016

05 Dec 2016

My Form have HTML Content. Each item in my list have the embedded HTML to display : The content is different for each Item. I have a Column that store the information : EmbeddedHTML that contain the following : (The bold and underline is the text who change each time.)

<iframe width="853" height="480" src="https://my.matterport.com/show/?m=KraFkFFK578&brand=0" frameborder="0" allowfullscreen></iframe>

How can i link my column into the HTML Content?

Thanks again

YuriyMedvedev
Moderator
Posts: 33
Joined: Wed Sep 21, 2016

06 Dec 2016

Hi! Just add HTML with this content:

<iframe width="853" height="480" src="{@EmbeddedHTML}"></iframe>

And set CDATA to "False".

User avatar
Jean-Philippe Tremblay
Posts: 8
Joined: Sun Dec 04, 2016

06 Dec 2016

Hi,

I tried and nothing appears.

Do i need to change my column type? Single line text? Hyperlink?

Thanks again for your help

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

07 Dec 2016

What's the current type of the field? Make sure that you're using the insternal name in the field in the code. Also, ensure that CDATA property is set to False.

User avatar
Jean-Philippe Tremblay
Posts: 8
Joined: Sun Dec 04, 2016

08 Dec 2016

Perfect :) Problem solve !


Thanks again

User avatar
Jean-Philippe Tremblay
Posts: 8
Joined: Sun Dec 04, 2016

28 Dec 2016

I use Hyperlink Field in Sharepoint to store my Data, When i use it in HTML (@MyInternalName), they use the link + Description, so i got a error. I need to use only the link.

I did a Javascipt variable to get only the link but i cant pass it into the HTML Code.

Any Idea?

Thanks again

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

29 Dec 2016

Hi,

Please, try this code:

<iframe width="853" height="480" src="{substring-before(@EmbeddedHTML, ',')}"></iframe>

User avatar
Jean-Philippe Tremblay
Posts: 8
Joined: Sun Dec 04, 2016

29 Dec 2016

Thanks! It work like a charm :)

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests