Forums

how to check a checkbox according to menu ID?

avia.livneh 21 Nov, 2012
hi,

i have the same form in several product pages- but i want that when a user is getting this form from a specific product page - the check-box under "Interested in" will mark the product that he is interested in.

for example- link: http://www.example.com/product_a/sales-inquiry

<fieldset>
<label for="product_A" title="product_A">
<input id="product_A" name="interested_in[]" type="checkbox" value="product_A" >
product_A</label>

will be checked...

thank you!
GreyHead 21 Nov, 2012
Hi avia.livneh,

Please see this FAQ for some ideas. The main question is where the product identifier is to be found?

Bob
This topic is locked and no more replies can be posted.