[Forms module] Display "select" labels instead of values in notification mails

jerev - 9 months ago

What would be the correct way to show the display value of a select input, in a mail notification, forms module.

Currently we use this helper (forms_input):

But this shows the value.
iow. given this option, 1: Apples, we currently see 1 and want to see Apples in the notification mail.

ryanthompson - 9 months ago

The default behavior does not accomodate this. The input variable get's passed into the notification though so you could do some Twig-ness in there.