HTML Content : Embedded from Column

rss

Posted by Jean-Philippe Tremblay - Dec 5 ’16 at 08:09

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
    Member for: 2 years 10 months 20 days
    #1 by YuriyMedvedev Dec 6 ’16 at 08:12

    Hi! Just add HTML with this content:

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

    And set CDATA to "False".

  • Jean-Philippe Tremblay
    Jean-Philippe Tremblay
    Member
    Member for: 2 years 8 months 11 days
    #2 by Jean-Philippe Tremblay Dec 6 ’16 at 08:51

    Hi,

    I tried and nothing appears.

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

    Thanks again for your help

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 10 months 26 days
    #3 by Dmitry Kozlov Dec 7 ’16 at 04:13

    [#2]: 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.

  • Jean-Philippe Tremblay
    Jean-Philippe Tremblay
    Member
    Member for: 2 years 8 months 11 days
    #4 by Jean-Philippe Tremblay Dec 8 ’16 at 04:01

    Perfect smile Problem solve !

     

    Thanks again

  • Jean-Philippe Tremblay
    Jean-Philippe Tremblay
    Member
    Member for: 2 years 8 months 11 days
    #5 by Jean-Philippe Tremblay Dec 28 ’16 at 11:29

    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

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 5 years 10 months 26 days
    #6 by Dmitry Kozlov Dec 29 ’16 at 05:51

    [#5]: Hi,

    Please, try this code:

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

  • Jean-Philippe Tremblay
    Jean-Philippe Tremblay
    Member
    Member for: 2 years 8 months 11 days
    #7 by Jean-Philippe Tremblay Dec 29 ’16 at 07:42

    Thanks! It work like a charm smile

Displaying 1 to 7 of 7 messages