XModPro

Using Dynamically Built Dropdown list in email

Mark Bennett Mark Bennett posted Mar 13, 2015
Active Mar 17 · Viewed 1401 times

I have a contact form where the user enters their child's birth date.  For this I am using 3 dropdown lists.  Two (month and day) are populated in code.

The third list is the year, and only shows the last 18 years.  Because I don't want to have to remember to update this list every year I am populating it using JQuery where I run a loop taking current year and subtract from it the variable "x" where x is between 0 and 18 and then append each year to the Year Dropdown List.

The problem I am having is when I use the Field Tokens in the email.  The Field tokens for Birthday and BirthMonth work fine, However the token for the BirthYear isn't inputing the value.  When I select a year and view the Developer tools in Browser it shows the box has the right value.

Anyone have an idea how to fix this.  Hoping I don't have to create a hidden textbox and populate it with the value on change event of dropdown.

3 Replies

Loading replies...