| Post |
|
Guest
| Vincent Meyer 9:21 pm August 5, 2008
| |
|
|
Please replace the ??? with your data!
[desc]: We've created a form that spans six pages, with data from previous pages being carried over as "hidden fields". This works for every input type except multi select boxes, which either result "Array" or the first two choices in the multi select box. _
I followed the directions on how to have one form feed into another, and it works great, except for multi-select boxes. If the multi-select box is in the last screen, it works fine, but if it's on an earlier screen, the data is carried over to the last page by being set up with the type "hidden field". When I get the e-mail of the results, the results if NOTHING was selected it the first two choices in the box, separated by a #. If ANYTHING was selected, whether one choice or more, the results in the e-mail say "Array". Help! (Please?)
Thanks,
Vincent Meyer
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:16 pm August 5, 2008
| |
|
|
Right, that's indeed an issue. since hidden fields are one-dimensional and multi-select boxes are essentially arrays.
A possibly work around could be to setup the exact same multi-select field in the next form, set it to readonly (cforms field config) and simply use its element ID & CSS to hide it (display:none;).
|
|
|
|
|
Guest
| Vincent Meyer 2:26 am August 8, 2008
| |
|
|
Oliver,
Where would I use the element id & CSS? Sorry, i don't mean to be dense.
Vinny
|
|
|
Guest
| Vincent Meyer 2:57 am August 8, 2008
| |
|
|
Or.. as a possible feature request, possibly a field type "Hidden Multi Select" ?
V.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:31 am August 8, 2008
| |
|
|
Or.. as a possible feature request, possibly a field type "Hidden Multi Select" ?
That feature request would have to go to W3C to include a new field into their specification. ;-)
Where would I use the element id & CSS? Sorry, i don't mean to be dense.
element id: to turn it on, go to 'styling' menu tab and select it (both label & field IDs).
CSS: right underneath you'll see an editor that you can use to add the necessary CSS (look up field/label ID in your HTML source code) and set it to display:none;
|
|
|
|
|
Guest
| Vincent Meyer 8:15 am August 11, 2008
| |
|
|
Had to find a brief tutorial on CSS basics before I got it right, but it works GREAT. The form is six pages long, an entire medical history (or well it will be when pages 7 and 8 are finished) which will import directly into our electronic medical record when the back-end is finished.
Thanks again for a great tool and for your help in getting it to do what we need.
V.
|
|
|
Guest
| Vincent Meyer 8:17 am August 11, 2008
| |
|
|
Oh.. and had to change the permissions on the style sheet so that the editor on the bottom of the Style page could update it – it defaults to read only.
V.
|
|
|
Admin
| Oliver Munich, Germany posts 6237 6:40 pm August 11, 2008
| |
|
|
I'll double check the permission setting, but believe it should be RW…thanks for the update!
|
|
|
|
|
Guest
| Vincent Meyer 3:15 am November 27, 2008
| |
|
|
Hi Oliver,
This worked great under the old version, and I didn't get a chance to test it under the beta or under the newer versions until this week. Unfortunately, something broke. Data from all field types except multi-select seem to carry over ok, but multi-select data does not.
I believe that these are the exact same forms that I had under the previous major version, and they haven't been changed. I DID confirm that the variable ID's are in the style sheet
#li-8-38 {display:none;} #li-8-50 {display:none;} etc..
Multi-select fields on the LAST page of the multi-page form work correctly.
If you'd like, I can give you the admin password to our site so you can look at what's going on. The multi-page form is currently not published, so you would have to log in as the admin to see it and play with it. Heck, I'm using your plug-in, I guess I can trust you with the keys to the site for a few days :-)
Thanks, in advance, for your help.
Regards,
Vincent Meyer
|
|
|
Admin
| Oliver Munich, Germany posts 6237 7:34 am November 27, 2008
| |
|
|
I'm currently traveling, but feel free to send login/pw to my email account (in cforms.php).
I couldn't find your multi page form, but did you compare the NAME/ID attributes of the select fields as well?
Capital/lower case entries?
|
|
|
|