PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

URGENT : Custom field not saved completly with field type set to list

  1. I have a custom field (field type list) that I use to write multiple date to database, so I have a list with 3 columns (start date, end date, time) and there's a + sign at the end to let the user add more than one date. Everything work fine at this point, the problem is that when I save that form, the post is generated and the meta are generated too but the meta only contain the first start/end/time ! If i go in the message section of the form, i see all the date has been saved, but they are not all in the meta. What's wrong with that ?

    The website i'm working on is already lunched ! And I just found this problem a hour ago, I hope someone have a quick solution !

    Thank you

    Posted 11 years ago on Wednesday February 6, 2013 | Permalink
  2. Good luck.

    Posted 11 years ago on Wednesday February 6, 2013 | Permalink
  3. @Judalpo, because you are a developer license holder, you can always use the Priority Support form, which received priority over support forum requests.

    http://www.gravityhelp.com/priority-support/

    I just created a form to create a post, and used a list field. The data for each row and field is captured in the custom fields. See this screenshot: http://minus.com/lbjHLxmGubsttS

    So, the question is, how are you using those custom fields in your template or your content template (in Gravity Forms for the Post Body)?

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  4. I"ve tried so many way, but for exemple this one :
    <?php print_r(get_post_meta( $object->ID, 'dates', true )); ?>
    A little bit rubbish but suposed to echo the whole array if there's one ?

    And for the priority-support i've filled one this morning, I haven't seen it before, thank your for taking time.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  5. For get_post_meta, I think the last argument should be false to return an array:
    http://codex.wordpress.org/Function_Reference/get_post_meta#Parameters

    We would need to see how $object is being set to see if $object->ID is equivalent to $post->ID. Can you dump the $object and see what it contains, sometime before the get_post_meta?

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  6. Oh my god... I don't know if I was tired or just stupid... the "false" parameter fixed my problem ! I'm really sorry about that, it was all my fault ...

    Thank your for your quick help ! I really appreciate to see that Gravity Forms has such good support team !

    Posted 11 years ago on Thursday February 7, 2013 | Permalink
  7. Thanks for the update. I was just looking at your admin and had to break out my French text books. Glad you resolved the issue.

    Posted 11 years ago on Thursday February 7, 2013 | Permalink

This topic has been resolved and has been closed to new replies.