Hi,
using below statement i can able to fetch the values of web form component but when i use this for select option component it returns key please tell me how to fetch value rather than key.

$companyref = $form_state['input']['submitted']['client_name_and_contact_number'];

use case,
1|abc
2|pqr

if above two are options i want abc not 1.

Thanking you in advance.

Comments

danchadwick’s picture

Status: Active » Closed (works as designed)

Webform will not be incorporating a feature to store values rather than keys.

Again, we don't offer programming support in the webform issue queue. Please try IRC or the forums.