| Post |
|
Guest
| Emmet 11:35 pm July 9, 2009
| |
|
|
- URL to the FORM: http://???
- The browser used: firefox
- cforms version: 10.5.2
- Your Wordpress version: 2.8
[desc]:Brilliant plugin but I wonder if you could help me.
I am able to show the results of my submitted forms using the get_cforms_entries api. However I have multiple field names with the same recorded field label.
I have read the help on api and have tried many combinations eg. using ['First Name'] and ['First Name__2'] but I am sure I am doing something stupid.
In help it mentions to "check the "Tracking" menu tab for how the fields are stored" but when I look at this the field names are both 'First Name'
Any help would be much appreciated
|
|
|
Admin
| Oliver Munich, Germany posts 6237 8:39 pm July 12, 2009
| |
|
|
what re you trying to do? sort?
if you have two labels with the same name, chances are both fields are stored with the same label key.
|
|
|
|
|
Guest
| Emmet 10:50 pm July 20, 2009
| |
|
|
Thanks for the reply. I am just trying to display certain fields from submitted forms so that someone can view it without having to download the csv record file.
I do have two fields in seperate fieldsets stored with the same labels. In this case "First Name"
I just can't figure out how to call the individual fields during one "for each" loop.
|
|
|
Guest
| m.e. 4:29 pm July 21, 2009
| |
|
|
This mirrors exactly my situation. I need to use 2 sets of addresses one for the 'customer' address, the optional other for the shipping address. I don't think it'd make sense to add a prefix or suffix to labels for the same kind of content. Although as brilliant as this plugin is, it could either use fieldset values to automatically differentiate fields with identical labels or offer an interface to alter them.
Or am I mising something?
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:09 pm July 21, 2009
| |
|
|
@Emmet
that's currently not supported. For your purposes, you'd have to make sure that label names are unique.
@m.e.
see above. I like the idea of introducing another level in the DATA array, introduced by a FIELDSET, e.g.
+ Field ABC
+ FIELDSET 1
—– + First Name
+ FIELDSET 2
—– + First Name
this will go into the next version. if you'd like to test it with v10.6 let me know and I can send you a custom file….
|
|
|
|
|
Guest
| Emmet 10:27 pm July 21, 2009
| |
|
|
Thanks Oliver. Yeah it would be easy for me to change the labels now but I have already made the mistake and quite a few forms have been submitted.
I guess I will have to look at the way the "lib_database_getentries" works because the fields are all correctly labelled when I download the csv file.
Cheers
|
|
|
Admin
| Oliver Munich, Germany posts 6237 10:29 pm July 21, 2009
| |
|
|
see response to m.e. above, let me know if this helps…
|
|
|
|
|
Guest
| Emmet 10:50 pm July 21, 2009
| |
|
|
As far as I understand the fields are already stored with the same label so introducing another level in the label could only work for future form submissions, so not to worry. I can still publish the data using sql queries on wp_cformsdata. I was just having difficulty sorting the data using this method.
Cheers.
|
|