I'm having troubles with the following: I created a form with entityforms and now i want to send a confirmation email with mimemail. Getting that to work is no problem.
But i need to perform a small check with the php evaluation function of mimemail.
The form is for customers to place an order, but they have to specify 1 of 2 printing techniques available, 'fdm' or 'polyjet'. This is a 'list' field in the entityform with the two options. And in the confirmation email i need to check what technique has been chosen so i can display some lines of text depending on the technique.
For my php evaluation i would like to get the key (machine readable name) of the submitted value.
So i can do something like this:
echo "lines of text for polyjet";
echo "lines of text for fdm";
So basically i just need to know how i can create a variable ($chosenkey) that contains the submitted key of the chosen printing technique.
anyone any idea how i can accomplish this? I have googled around but can't find any relevant answer.