I have a file attach field in my webform. When i have submit my webform without this field,in my email content showing like "ATTACHED FILE: [webform_submission:values:attach_file]". I have checked "Exclude empty elements" in my email handler.This is working for all other fields in my form except this "File attach" field.How can i solve this issue?

Similar question was recently answered by the Webform module developer at drupal.org:

"You might just need to append the :clear prefix.

[webform_submission:values:element_value] => [webform_submission:values:element_value:clear]"

https://www.drupal.org/project/webform/issues/2982562

So, in your case use replacement pattern: [webform_submission:values:attach_file:clear]

  • Thank you..its working.But now the link (if i have attached file) is missing and link to file is showing as plain text.Can i solve this? – salu Aug 12 at 19:20

Your Answer

 
discard

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.