Jump to content
  • 0

Embedding a YouTube video in a single record datapage


Amyas
 Share

Question

Can anyone share experience or advice about linking each record in a table to a YouTube video, and embedding that video in an associated detail datapage?

My specific table contains applications to a startup programme. The videos are 90s pitches by the entrepreneurs that have been uploaded in YouTube. I want to show a single-page summary of each application, with the associated video embedded in it, to the application review committee. 

I can get embed code from YouTube but I'm not sure how to get it dynamically into a datapage. Maybe pass the link into a parameter and embed that parameter in the standard embed block?

Ideas very welcome.

Can I just mention I am glad to be customer of a company with a big Ukrainian office which is doing all it can to support its Ukrainian colleagues. I'm asking this question of fellow forum members, because I'm sure the staff have more important things to do.

Many thanks

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

Hello @Amyas,

You may test the following approach. 

1) Get the embed link (direct link does not work) and copy it to the table. 

To get the embed link click Share -> Embed -> copy the link

3y1zREL.png

 

2) Table example:

K49xOpO.png

3) On the Report DataPage you may add the HTML block, disable the HTML editor on the Advanced tab, and paste the whole embed code. Replace the source with the parameter, so that each record will display the corresponding video. 

1qdhdzK.png

 

Hope this helps. 

Link to comment
Share on other sites

  • 0

That's outstanding - many thanks CoopperBackpack 

You also helped me understand better how to use [@field:parameter]. This will be useful again, I've no doubt.

Great tip about using the /embed link. I'll ask my users to get just the YouTube video ID eg w6T1cqg0gnk. I'll stick that on the end of the standard embed URL.

Kind regards

Link to comment
Share on other sites

  • 0

Hi @Amyas - the other way around for you to display the YouTube video is by copying the embed code in the YouTube video and inserting it in the table. 

image.png

After saving the embed code, you can display the field by rendering it as HTML: https://howto.caspio.com/datapages/datapage-components/field-formatting-options/#:~:text=Render Field Values

image.png

Hope it helps!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...