Unable to add image from from to node

Created on 18 June 2024, 5 months ago

Problem/Motivation

I have an image field, want to add to a node when the form is submitted using handler. There are 5 fields showed up for this node image field. It seems the first one is key (Column: File ID - Type: integer).

I first tried to use direct field match between the form image to node image(the first field), didn't work.

I then tried to use token, but unable to find any token, So I tried:

[webform_submission:values:image:id]
[webform_submission:values:image:fid]
[webform_submission:values:image:entity:fid]
[webform_submission:values:image:entity:id]

none works. Checked the value of these token, only [webform_submission:values:image:fid] shows the path of the file, others are just empty.

The images were truly submitted. I used the value in submitted result (an integer) and put it to handler. It successfully saved that image to node. So, the issue is what token should be used for (Column: File ID - Type: integer)

Thank you for your help!

πŸ› Bug report
Status

Active

Version

6.2

Component

User interface

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @sdsc
  • Status changed to Postponed: needs info 5 months ago
  • Add a "Steps to Reproduce" section to the issue summary explaining exactly how to recreate this bug. Include the YAML of an example form too.

  • Steps to Reproduce

    1. add an image field (allow multiple images) on webform.
    2. create a content type with an image field (allow multiple images)
    3. on webform settings, add a handler to create a new content and select the content type with the image field
    4. On the handler set up, for the image field, it says "(Column: File ID - Type: integer)", what should be put there?

  • Status changed to Closed: outdated about 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    on webform settings, add a handler to create a new content and select the content type with the image field

    This is not a feature of the webform module.

    I am guessing you are using the Webform Content Creator β†’
    module. Please move this ticket over to the appropriate module's issue queue.

Production build 0.71.5 2024