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.

Comments

Anonymous’s picture

Issue summary: View changes
Anonymous’s picture

Status: Active » Closed (duplicate)
fra_ore_90’s picture

+1