- 🇮🇹Italy maurizio.ganovelli Arezzo
I'm going to close older issues, feel free to reopen if still relevant.
Opening form in modal is possible by injecting some attributes in link generated by the module formatter using hook_webform_attachment_gated_download_url_alter().
Something like this:
function mymodule_webform_attachment_gated_download_url_alter(Url $uri, $item) { $options= $uri->getOptions(); $options['attributes']['class'][] = 'use-ajax'; $options['attributes']['data-dialog-type'] = 'modal'; $options['attributes']['data-dialog-options'] = json_encode( [ 'autoOpen' => FALSE, 'title' => t('Confirm form'), ] ); $uri->setOptions($options); }