Passing multiple values in a hidden field

Hi All,

I have a subscribe form on my webpage - I would like to pass information in a hidden field, that should contain two values.
So I changed the the field type to "hidden" (which was normally a radio button), deleted the other occurences of the radio buttons tag, and I tried to put "56768||56770" as the value, but it returns an error. 

Does anyone know how to do this?

Thanks a lot,

travisbell travisbell, 8 years ago

Hi CrystalDigit,

I can't say for sure as I haven't actually tried to do this but I would guess it's a problem with the radio select. From the looks of it, you are attempting to submit a multiple option custom field?

First, If it's a field where you have a 1 or more selectable items, make sure the field is configured as such:
Click for full size

Next, choose to display these options as checkboxes...
Click for full size

Last step, copy the code for the two checkboxes, and simply make them both checked AND hidden, like so:

<input type="hidden" name="cm-fo-jlvq" id="cm68408" value="68408" checked />
<input type="hidden" name="cm-fo-jlvq" id="cm68409" value="68409" checked />

I just tested this and it looks like it works as expected.

Travis Bell
CrystalDigit, 8 years ago

Thanks Travis,
It works perfectly!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free