Hi

I've loaded a submission using webform_menu_submission_load() but obviously this loads the submitted values is there a webform function I can call to convert a value from say "x" which was a drop-down option to the text from the drop-down of "extra".

I'm already using the rather useful function from here to get me a mapping of component names to field id's (in case this helps)

Ta
Chris

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

This custom coding question is generally out of scope for the Webform issue queue but easy enough to answer. There isn't a function that will automatically convert select list keys into their labels, but you can retrieve the mapping of values to labels using _webform_select_options() in the components/select.inc file.

Because this question is both old and out of scope for the Webform issue queue, I'm marking it closed directly.

quicksketch’s picture

Issue summary: View changes

typo