Using Drupal 9 and webforms module.

I have a webform with a hidden field. The hidden field has an array of NIDs being set through cookies. On form submit, the form email has to include all the information submitted and also print the node titles from the hidden nid array. I have tried using hook_mail_alter method, but it doesn't allow me to add custom values to it. Any suggestions? Thanks in advance.

  • I think you can create a custom mail handler, you can start from the default mail handler that comes with the webform and start customizing it from there. Aug 31, 2022 at 3:27


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.