Hi There
Weird issue, but I am trying to populate a Multi-select in CB (via the CF_CB Plugin) from a multi-select in my Chronoform. I have exactly the same values set up in both. This is the code in my Chronoform:
In the CF_CB Plugin I put the value 'event-group' into the field that relates to my CB multi-select.
Upon testing the form, and checking first the test CB profile, the result always comes back with the word 'Array' and that's all. If I Edit the CB Profile I can see that the equivalent fields in my CB Multi-select are not selected, so something isn't right obviously.
Am I doing something wrong? Or am I doing something that just can't be done?
Weird issue, but I am trying to populate a Multi-select in CB (via the CF_CB Plugin) from a multi-select in my Chronoform. I have exactly the same values set up in both. This is the code in my Chronoform:
<label class="cf_label">Event Group/s Coached (Muliple Select)</label>
<select class="cf_inputbox" id="event_group" size="9" title="" multiple="multiple" name="event_group[]">
<option value="Sprints">Sprints</option>
<option value="Hurdles">Hurdles</option>
<option value="Distance">Distance</option>
<option value="Throws">Throws</option>
<option value="Jumps">Jumps</option>
<option value="Race Walking">Race Walking</option>
<option value="Multi Events">Multi Events</option>
<option value="Young Athletes">Young Athletes</option>
<option value="AwD">AwD</option>
</select>
In the CF_CB Plugin I put the value 'event-group' into the field that relates to my CB multi-select.
Upon testing the form, and checking first the test CB profile, the result always comes back with the word 'Array' and that's all. If I Edit the CB Profile I can see that the equivalent fields in my CB Multi-select are not selected, so something isn't right obviously.
Am I doing something wrong? Or am I doing something that just can't be done?
Hi daemonhunt,
You'll need to have ChronoForms set up to handle your arrays (or explode them yourself) and I think that there's a problem with the separator for exploded arrays. ChronoForms uses ',' and CB uses '|*| '. Some core hacking is required to fix this. There's been a recent thread on this with postings in the last couple of days.
Bob
You'll need to have ChronoForms set up to handle your arrays (or explode them yourself) and I think that there's a problem with the separator for exploded arrays. ChronoForms uses ',' and CB uses '|*| '. Some core hacking is required to fix this. There's been a recent thread on this with postings in the last couple of days.
Bob
Hi daemonhunt,
You'll need to have ChronoForms set up to handle your arrays (or explode them yourself) and I think that there's a problem with the separator for exploded arrays. ChronoForms uses ',' and CB uses '|*| '. Some core hacking is required to fix this. There's been a recent thread on this with postings in the last couple of days.
Bob
Hi Bob
Still trying to make this work. Found a post (http://www.chronoengine.com/forums.html?cont=posts&f=9&t=14667&p=39584) with some core hacks to handle multiple checkbox arrays, but that code doesn't seem to be working for me with my muli-select dropdown array and I'm unsure why.
Trying to find the post you mentioned from "the last couple of days"
Anything specific you can add?
Hi daemonhunt,
You linked to the thread I remembered. Nothing extra to add from here. If you've made those code changes then probably most useful to echo out the db query to see what is actually in it.
Bob
You linked to the thread I remembered. Nothing extra to add from here. If you've made those code changes then probably most useful to echo out the db query to see what is actually in it.
Bob
Yes, well I still haven't solved it. IS there no-one else out there apart from Bob who can help?
Oh this is sad, I seem to be stuck.
Anyone out there willing to help? (echo echo echo) 😟
Anyone out there willing to help? (echo echo echo) 😟
This topic is locked and no more replies can be posted.