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.

Form field is saved as ID in meta field.

  1. sirtimo
    Member

    Hello,

    I'm using the user registration add-on to create new users, and i'm also saving some form fields as custom meta fields in the user table.

    On of the form fields, is a populated drop down menu, with the names of a custom post type. The names of the post type show nicely in the pulldown menu. When submitting the form, the name of the post type is nicely saved in the form; i can see that in the email, and i can see that in the form admin.

    Now, what ends up as a meta field value in my user table, isn't the name of that post type, but it's ID. So there's numbers being saved. I can't wrap my head around it, since it was working before one of the latest gravity forms updates.

    So, everywhere, the name of the ID is being saved, except for my meta field, there it's a post idea. Is this a known issue?

    I

    Posted 11 years ago on Thursday July 11, 2013 | Permalink
  2. David Peralty

    Can you show us the form and give more information on what you are doing? Are you using merge tags or drop down selections when building this out? All my best!

    Posted 11 years ago on Thursday July 11, 2013 | Permalink
  3. sirtimo
    Member

    yeah ofcourse,

    It's about the field 'instelling', as you see it's being populated with the gravity forms + custom post types plugin, and you see all the values, and the names. Everywhere (form emails and the saved info in the backend, i see the name displayed. But what's being saved in the database for the metafield, is the value. It's very strange.

    Posted 11 years ago on Thursday July 11, 2013 | Permalink
  4. David Peralty

    That might be a custom post types issue. I'm not certain. But because you have value selected as active, it is going to use the value rather than the label for the different selections as that is what is seen as "being needed" by many parts of Gravity Forms. In your User Meta, you have school and then Instelling and so it will take the value not the label from Instelling and save it.

    Posted 11 years ago on Thursday July 11, 2013 | Permalink

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