Closed (fixed)
Project:
Webform
Version:
6.x-3.17
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
26 Dec 2012 at 12:29 UTC
Updated:
18 Jun 2013 at 04:14 UTC
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
Comment #1
quicksketchThis 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.
Comment #1.0
quicksketchtypo