Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
- Install PHP views 1.0 alpha 1 + Webform 4.0
- Create a webform with a text field "Item Cost"
- Submit the form 3 or 4 times with different values
- Go to view => Create new view with the following settings:
- Show: "Webform submission"
- Display Format: "Table"
- 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"
- Add a new field: "Global: PHP" and in the output value print out "$row->value"
- The PHP views module will not display the field value but the webform SID instead.
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #3
fra_ore_90 CreditAttribution: fra_ore_90 commented+1