You need to sign in to do that
Don't have an account?
ckemp
Check boxes in Web2Lead
Hi,
I have a form which was formerly implemented as a drop-down selector, like this:
Instead, I would like to use a series of check boxes, like this:
Will this work with Web2Lead? Or should I be doing this another way since the "name" attribute should be unique? I tried to find some documentation for Web2Lead to figure this out, but they only seemed to have examples of simple forms with drop-downs. I was hoping someone who is familiar with this could steer me in the right direction. Thanks!
Message Edited by ckemp on 11-21-2008 10:20 AM
I have a form which was formerly implemented as a drop-down selector, like this:
Code:
<select id="00N70000009jrvK" multiple="multiple" name="00N70000001jrvK"> <option value="Option 1">Option 1</option> <option value="Option 2">Option 2</option> </select>
Code:
<input type="checkbox" value="Option 1" name="00N70000009jrvK">Option 1<br> <input type="checkbox" value="Option 2" name="00N70000009jrvK">Option 2<br>
Will this work with Web2Lead? Or should I be doing this another way since the "name" attribute should be unique? I tried to find some documentation for Web2Lead to figure this out, but they only seemed to have examples of simple forms with drop-downs. I was hoping someone who is familiar with this could steer me in the right direction. Thanks!
Message Edited by ckemp on 11-21-2008 10:20 AM
werewolf
You can do it, but it's not simple. You'll have to wire up the checkboxes to set a value in a hidden input whose ID matches the ID of the original select, and whose value, when posted, matches exactly the value of the select you have there. You can use the LiveHTTPHeaders addon for firefox to see what you're posting and craft your hidden input to match it.
ckemp
Thanks wolfman! I was afraid that might be the case...