Score:0

Webform token won't render value in iframe

kr flag

I have an iframe in which I'm trying to include a token which is a value from a select list. In the code below, this value:

[webform_submission:values:choose_video:raw]

Won't render in the iframe, but does render directly below it, in a P tag. Is there some filter I have to apply? When I do include the token, the all the greater and less than symbols are escaped in the iframe. Code is below. Thanks for your help.

<iframe width="560" height="315" 
src="https://www.youtube.com/embed/[webform_submission:values:choose_video:raw]"
title="YouTube video player" 
frameborder="0" 
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen>
</iframe>

<p>[webform_submission:values:choose_video:raw]</p>

Here is the way this appears on the form:

enter image description here

kr flag
This is a computed twig field.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.