Hi Bob,
Thanks for the push to the other post, some great info however it has not helped me. For capsule to work when using a checkbox I need to identify the checkbox name as "TAG" and then have the options set to whatever the options are in the CRM, in my case "Web, Print, Video"
In the other post it suggests adding a unique name in each option, which I cannot do as it has to be "TAG" for capsule to recognise it. So what happens is, if someone chooses more than one option, only one is returned. This is the code I nned to acheive for the checkbox to work with capsule:
<input value="Web" title="Please choose an option. Thank you." class="radio validate-one-required" id="check00" name="TAG" type="checkbox" />
<label for="check00" class="check_label">Web</label>
<br />
<input value="Print" title="Please choose an option. Thank you." class="radio validate-one-required" id="check01" name="TAG" type="checkbox" />
<label for="check01" class="check_label">Print</label>
<br />
<input value="Video" title="Please choose an option. Thank you." class="radio validate-one-required" id="check02" name="TAG" type="checkbox" />
<label for="check02" class="check_label">Video</label>
I also notice that cURL uses [] for the arrays, this causes another issue. When capsule recieves a phone number or address it can be allocated to work, home etc, in order to do this the name of the text box needs to be "PHONE[WORK]" or "PHONE[HOME]" etc, example of code needed:
<label class="cf_label" style="width: 150px;">Phone Number *</label>
<input class="cf_inputbox required validate-number" maxlength="150" size="30" title="Please enter a valid phone number. Numbers only. Thank you." id="text_3" name="PHONE[WORK]" type="text" />
Unfortunately when using cURL it converts the [WORK] or [HOME] into an array and removes it from the NAME field:
[PHONE] => Array ( [WORK] => 0331
Any ideas
Many thanks
Kev