Hi everyone. I'm running into an issue and was hoping someone could point me in the right direction.
I am trying to modify the email subject template (form builder addon) so that it includes the value from one of the fields that is on the form. The field is a select box and is called "Type of question" (see attached screenshot for reference). When someone chooses an option from that box and submits the form, I want the text value to be part of the email subject. That way I can use Gmail filters to automatically move or forward the email.
Looking at the contact form's html page source, I found:
- Select - Product Shipping Order Return Personal Shopper request Website issue Other
I looked at the code in the email template (design/backend/mail/templates/addons/form_builder/form.tpl) and after some trial and error, I figured out I should be able to get this value from {$form_values.$element_id} where element_id is equal to "11" from the page source.
So, I added {$form_values.11} to the template (design/backend/mail/templates/addons/form_builder/form_subj.tpl) and submitted the form selecting the option "Product". The resulting email subject says "12", which is the option value in the html source code, not the text value. But, that text value is displayed in the email body, so it should be retrievable somehow.
Any ideas?
Thanks in advance,
Jason