- macpoohAsked on February 04, 2013 at 05:49 PM
Does anyone know what the variable/array name is for fields that offer an "other" entry or how I could find it on the JotForm site? I want to be able to post form user's entries on a php thank you page however the field name is only displaying the known values but not the unknown variable from an "Other" input field. For example:Mom and Dad Single Dad Single Mom
The name for this field is childsGuardian77 so in a php post (<?php $childsGuardian77 = $_POST[childsguardian77];?>), it will print the first three know values (Mom & Dad, Single Mom, Single Dad) when one of those is selected. But if the "Other" choice is selected, no matter what is typed into the input box, what is displayed on the thank you page is "Array". There has to be something else in the field name that identifies and displayes the unknown variable. Thank you for your asistance with this matter.
- JotForm SupportabajanAnswered on February 04, 2013 at 07:17 PM
This is a bit of a longshot but try pointing a separate variable to
and let us know if that helps.
- macpoohAnswered on February 04, 2013 at 10:12 PM
Yeah, I had already tried that but that's not the naming convention that's being used in your DB. What is being used in the autoresponder and notification emails because the variables are being properly displayed in those? I don't have access to that code so there is no way for me draw a reference.
- JotForm SupportEltonCrisAnswered on February 05, 2013 at 12:05 AM
How about this?
I think this works. Thanks!
- macpoohAnswered on February 05, 2013 at 12:32 AMhttp://storyized.com/order.htm
- JotForm SupportEltonCrisAnswered on February 05, 2013 at 01:04 AM
Thanks for that details. Anyway, after making a test with your form the "G" isn't capital. So use the following.
You can use the same way for the other fields with "other' option. Just replace the field name and add the index 0 e.g. . I believed "Other" option always have 0 index since it's the only option with text box on radio button fields.