Pre-populate Gravity Forms Field with Custom Post Type
In your foreach statement you are both trying to get and assign properties on a non-object, in essence, the $field variable is actually not an object, but rather an array. I don’t know why the example code on the Gravity Forms website is using object notation, perhaps the underlying API has changed. Anyway here is … Read more