When using a "Select options" component, when trying to output the field in Views using "Webform submission data: Value" there doesn't seem to be a way to output the "safe_key" as defined in the key-value pairs. (Key-value pairs MUST be specified as "safe_key|Some readable option".)

For instance if you define:

foo_key|Foo readable option

...as an option, I'd like to be able to output "foo_key" instead of "Foo readable option".

I can see that the safe_key value is in the render array given as a parameter in line 219 of webform/views/webform_handler_field_submission_data.inc

...but there's no way to actually display that value instead of rendering the field (which ends up displaying the readable option).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Zooney created an issue. See original summary.

Zooney’s picture

Issue summary: View changes
mizage@gmail.com’s picture

FileSize
68.75 KB
38.85 KB

I got around this by building a relationship. See attached screenshots.

mizage@gmail.com’s picture

FileSize
38.88 KB
Liam Morland’s picture

Could this be added to the Webform documentation?