I have a webform that needs to be sent via rules. That's all fine but I don't seem to be able to access the data key for a select list in my webform.

I can get the value like this:


But I need to key not tha value.

I tried (as a guess)


But that doesn't work.

Any ideas?


I used a work-a-round for this by using the translate option in Drupal.

I've set up the key as a value and translated the key to the value that I wanted.

This was used for a custom field, but it worked fine for me.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.