My situation to tackle this problem was a bit problematic because I wanted to use the GF Update Post plugin to let my users edit their post right after they submitted the content. With the above solution ACF does not write to the db and correct ACF fields (at least not for me).
My solution:
-
Create a ACF custom field group and add a field with the same checkboxes and use the same meta_key as your gravity form.
-
Use a function after submission to fetch the all matching keys as array and update the ACF field key (Show on screen -> ACF field value in ACF field group edit screen)
add_action("gform_after_submission_YOUR_FORM_ID", "acf_post_submission", 10, 2); function acf_post_submission ($entry, $form) { $post_id = $entry["post_id"]; $values = get_post_custom_values("YOUR_CUSTOM_FIELD", $post_id); update_field("ACF_FIELD_KEY", $values, $post_id); }
Related Posts:
- Creating wordpress user registration form
- The values of custom fields are not available functions.php
- Problem with ACF shortcode with Repeater Field in WordPress? [closed]
- Using Multiple Submit buttons to trigger customised php functions
- Using file_get_contents with Gravity Forms uploads folder to create images in the media library returning false
- ACF: how do I get the fields and its values of a specific group?
- How to store data from multiple forms using ajax and php
- Function to capture a value and store it in a variable
- Keyword checking in Gravity Forms
- Download PDF after CF7 form submission
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- Using data sent via AJAX in multiple functions on a WP plugin
- HTML Special Characters in URL string [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- Shortcode to embed Edit Account form not working
- How can I count ACF sub_field with a certain value
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- Delete images from media library when user deletes an image from ACF Gallery
- Dynamically populate parameter in Gravity Forms using PHP
- Trying to update Woocommerce meta values
- Updating user meta adds string count to value?
- PHP multiple forms, same page, isset($_POST[]) not working?
- Gravity Forms: How to add PHP function to confirmation conditional shortcode?
- How to change this ajax function to submit to the default wordpress content area instead of the custom field ‘seller notes’?
- Confuse between forms and tables
- Advance custom fields variable with if statement & Function
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- Creating wordpress user registration form
- Page returning ID from array, how to return the correct values for post in acf wordpress
- How to set up an auto delete post?
- Styling admin page rows in order of importance (checkboxes)
- Display default WordPress login/registration form into a modal window
- Trouble using wordpress functions in a pop-up modal form
- Adding Gravity Form With if(is_page) Is Not Working
- ajax form function error
- Send foreach $_post method to contact form 7 [closed]
- ACF Date fileds to Age Convert [closed]
- Contact form with dynamic dropdown and filter
- Custom WordPress Function – Adding items from Foreach Loop into an array and Updating Field based on array of IDs (ACF + WooCommerce)
- Creating posts with php-script + csv
- ACF number less than comparison not working
- “acf/load_field” Critical error upon saving/updating WooCommerce products [closed]
- Put ACF function output code the_terms
- Function for Post Creation plugin for Gravity Forms
- Display endpoint’s return into a file (file_put_contents())
- How to capture number input from wordpress form into acf field in woocommerce
- add class to woocommerce single product template gallery thumbnails if media attachment ACF field toggled (true/false)
- Custom PHP contact form issue
- Trouble getting wpdb to work – first time
- How can I process a form submission from an HTTP POST request?
- Logged in user ID as post ID
- Having a Function Inside of the Loop
- How does WordPress insert Paragraphs in posts
- WordPress Access allowed to fewer pages till user logs in
- Linking text within textarea of custom meta box
- Show css depending on activity type in BuddyPress activity-loop [closed]
- only show container with next/prev links if they exist?
- How can I reuse the code to capture a param in a URL and place in a value in a hidden form?
- How to combine wordpress_logged_in cookies in one cookie?
- Populate dropdown with Child Pages based on Parent Page chosen
- How can I remove a function that has been added to wordpress with add_filter?
- Change the WP Video Shortcode Output
- Show categories then when clicked on a category list all sub category and when clicked show all posts in that sub category
- remove wp floating submenu in wp dashboard
- How to put “Read more” link in Custom Excerpt inside p tag?
- Two Different Links for Same Product – WooCommerce [closed]
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to control WordPress image metadata (using Imagick)?
- How to add seperate classes to no-search-result and found-search-result pages on wordrpess search – is_search()
- Get value from shortcode to do something
- PHP 8, AJAX mail form to function.php doesn’t work
- How do I add custom bulk actions to multiple custom post types?
- How to use $query->set with post__in?
- Error when adding excerpt to the content through functions.php
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- Get post id in a function when edit/add a post
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- How to check if a meta value has already been assigned to any user?
- Ajax loaded form replaces form action with Ajax url
- How to complete two other input fields, completed the first
- prevent default not stopping page refresh. Passing form information to and from php with ajax in a wordpress site
- Prev/Next child navigation for current page modifications?
- Capture User Email Address When Filling Out Form
- Adding rel tag to all external links
- Saving an array of dynamic repeater data as post_meta
- How can I apply_filters from inside a function?
- function to assign user role based on a field from usermeta
- How to limit the number of forgot password reset attempts in WordPress?
- what is the best practice to add new field to an api route
- Custom search results page not working with empty search
- Modify HTML structure of fields in woocommerce checkout form
- Retrieve $_POST data submitted from external URL in WordPress(NOT API)
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Use DOMDocument with ob_start breaks my HTML code
- Auto-update products after they were published – Woocommerce
- How to prevent WP_Query function from returning all posts when empty?
- wp_trim_words() does not work with my code Am I doing any mistake in my code?
- JS file work only in index page