Does anyone know how to construct the variable names for contact us form additional fields? I added a checkbox for people to check if they would like to receive our catalog. I want the subject line to be different when this box is checked so my attention will be drawn to the fact that the customer is requesting a catalog. To accomplish this, I am adding code such as this to the help_contactus_subj.tpl:
Code:
{if $additional_values[3].value eq "Y"}
{$lng.eml_contact_us_catalogreq_subj}
{else}
{$lng.eml_contact_us_subj}
{/if}
I know it's possible to make it work with default fields because I tried the following and it worked.
Code:
{if $contact.firstname eq "Jill"}
{$lng.eml_contact_us_catalogreq_subj}
{else}
{$lng.eml_contact_us_subj}
{/if}
I have tried all sorts of variations for the variable name and nothing works. The name in the source code of the contact us page for this input value is "additional_values[3]."
This obviously isn't a necessity. I'm just so frustrated now I'm determined to make this work

. If anyone knows how to address these additional fields, please share your knowledge.
Thanks,
Jill