Posted4 days 22 hours ago by Dragon Drop (drop) in Weekly Meetings
Recent comments
This was from examining line 2463- of the webform.module, where
// Attach necessary JavaScript and CSS.
$form['#attached'] = array(
'css' => array(backdrop_get_path('module', 'webform...
d'oh. Because of course it is reassigning. Don't mind me...
the correct syntax is
$form['#attached']['js'][] =
backdrop_get_path('module', 'mymodule') . '/mymodule.js';
I have confirmed, that using the method $form['#attached']['js'] stops the webform.js from loading.
https://docs.backdropcms.org/form_api#attached shows that this is the expected method of JS loading...
So the issue is what I have done here:
https://forum.backdropcms.org/forum/webform-references-tree
in that by loading extra JS into $form['#attached']['js'], the Backdrop.webform.conditionalCheck...
Comments
I recommend the YouTube Field module. It has the option to be responsive and use the full width of whatever container it is in
There's also Video Filter if you are going to paste the videos into the body text.
I also use the "YouTube Field" module where there is a lot of content to embed.
If it's just a one-off... use iframes.