Views PHP + Webform 4.0

Created on 28 January 2014, about 11 years ago
Updated 23 January 2024, over 1 year ago

I have encountered a bug with Webform 4.0 and PHP views.

PHP Views is not displaying the field value but the submission's ID.

On a fresh Drupal install 7.26:

  1. Install PHP views 1.0 alpha 1 + Webform 4.0
  2. Create a webform with a text field "Item Cost"
  3. Submit the form 3 or 4 times with different values
  4. Go to view => Create new view with the following settings:
    • Show: "Webform submission"
    • Display Format: "Table"
  5. Add a new field "Webform Submission Data: Value" with these settings:
    • Custom Label: "Item Cost"
    • Webform Node: The id of your webform node
    • component data: "Item Cost"
    • display format: "Html"
  6. Add a new field: "Global: PHP" and in the output value print out "$row->value"
  7. The PHP views module will not display the field value but the webform SID instead.
🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024