Score:0

Attach file to webform submission email from "Entity select" entity

fr flag

I am trying to attach a file from a entity reference in a Webform. The form is basically like this:

information:
  '#type': wizard_page
  '#title': 'Information'
  machine_floor_plan:
    '#type': entity_select
    '#title': 'Select file node'
    '#multiple': true
    '#sort_options': true
    '#select2': true
    '#target_type': node
    '#selection_handler': views
    '#selection_settings':
      view:
        view_name: node_reference
        display_name: entity_reference_1
actions:
  '#type': webform_actions
  '#title': 'Submit button(s)'

And the node referenced looks like this:

  • title
  • field_file (type: file)

Any suggestions on how I attach the file to the email sent by Webform when the user submits the form.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.