I am using the 'Additional Processing' field in my webform to send out a formatted email of my webform contents. However I do not understand how to extract the "option" or readable portion of the key-value pair in the listbox componet of my webform.
Here is a small listing of the componet "options" field:
010|010 - Public Notices
020|020 - Volunteers Wanted
030|030 - Travel
040|040 - Personals
050|050 - Lost & Found
This is what I am using to extract the listbox information:
$category = $form_values['submitted_tree']['ad_category'];
But all I get is the part before the pipe; i.e. 010, 020, 030, etc. I would like to get the part AFTER the pipe instead.
Any help would be greatly appreciated.
Comments
Comment #1
keywestcitizen CreditAttribution: keywestcitizen commentedComment #2
quicksketchSupport for writing custom code is no longer provided in the Webform issue queue. You're on your own with custom validation/submission code.