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.

List Field Data to Post Custom Fields

  1. ckrauskopf
    Member

    I have a number of custom post types set up, each with a set of custom meta fields attached. The goal is to characterize a system of pumps and motors that will be different for each user. Post types correspond to pieces of equipment, and custom fields correspond to things like model number, manufacturer, etc. I have got a gravity form to create each of these post types and populate the associated custom fields, and I thought I was done, but I now realize that I don't know how many pumps or motors each system will have, so I need users to be able to add extra motors if applicable.

    Basically, the list field does exactly what I want on the front end, but I can't seem to find a way to get that data into my custom fields on the back end. From reading through the forums, it seems like maybe the most promising way to do this would be to write a function that hooks onto gform_after_submission. Here is the thread where I got that idea, but I'm somewhat of a php novice, so if there is a better approach, please let me know:

    http://www.gravityhelp.com/forums/topic/help-with-gform_after_submission

    Also, I'm stuck here since what I need is for each cell in the list field to update a different custom post field. I'm not sure how to access the right entry.

    Lets say I have a list field called 'motors' which is field ID:1 on form ID:4 - How would I get the value entered into row 1 cell 4? What about row 2 cell 3?

    Is this even possible? Thanks in advance for any help. I'm feeling quite stuck at the moment.

    Posted 12 years ago on Tuesday July 3, 2012 | Permalink
  2. @Majko, please create a new topic and include a link to your form with a clear explanation of what you would like to do. Thank you.

    Posted 11 years ago on Thursday January 17, 2013 | Permalink

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