Home › Forums › General Issues › Update/Add values to Relationship field using Gravity Forms › Reply To: Update/Add values to Relationship field using Gravity Forms
An ACF relationship field contains an array of post IDs.
I do not know how to do this so this is a guess.
First, you would have to alter the redirect url to include the location post ID that is created in the query string for the staff post type create form and dynamically populate the location field.
Then you need to custom code an action on whatever hook gravity forms provides for when a form is submitted. In this filter you would have to update both ends of this relationship field yourself using update_field().
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.