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.