Hello! I can not do the following in the webform:
I need to create a webform that has 2 buttons which each of them downloads a different PDF if a different option is chosen in the combobox, how can I do it?
thank you
I need to do something that I know is antithetical to Drupal 8: insert inline JavaScript from a PHP function. If time allowed, I would restructure the site to avoid this situation, but I don't have time.
I need to have a PHP associative array, encoded as JSON, to be available to the whole page within script tags.
The PHP object is created within function THEME_preprocess_views_view__VIEWNAME. How can that associative array/JSON object be made available to JavaScript in the page?