[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] gift certificate require email address
Hello List,
Below is my code in checkout.html in the [item-list] section. What I want
to do is require users to enter a valid email address if they have ordered a
gift certificate. How can I set this up? It would be requiring a field
which has a variable name - emailto_1, maybe emailto_2 ... ad infinitum.
I tried to use the "required=1" in an [error] label (as you can see), but
that doesn't seem to do it. Using IC 4.8.3.
Thank you,
Russ Mann
[if-item-field gift_cert]
<tr bgcolor="[item-alternate
2]#eeeeee[else]#c0c0c0[/else][/item-alternate]">
<td colspan="5" align="left">
<font __FFACE__ size="1" ><b>[error name=emailto_[item-increment]
std_label="E-Mail Gift Certificate To" required=1]:</b></font>
[if !value emailto_[item-increment]][value name=emailto_[item-increment]
set="Not Set" hide=1][/if]
<input type="text" name="emailto_[item-increment]" value="[value
emailto_[item-increment]]" size="30">
</td></tr>
[/if-item-field]