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 can I process a form submission from an HTTP POST request?
- How do I get the author’s page url from their ID?
- How to check from which page the user is coming to the current page?
- Execute only on a certain page
- Replace comment avatars and links at the same time
- Check if Product is in a Specific Category in Functions.php
- Adding ads code between comments
- Ajax form submit within a Post Metabox
- How to create and work with custom data / tables (i.e., for arbitrary data)?
- How to Display Image Meta underneath EVERY image in EVERY post
- Upload Image in a WordPress page using PHP
- Limiting woocommerce line_total decimal length
- Shortcode content filter?
- only show container with next/prev links if they exist?
- JS file work only in index page
- Error in custom php function doesn’t exist
- Update grandchild repeater field with value per row
- Custom shortcode outputs plain text instead of HTML at top of post
- how can i use $_COOKIE[] + PostID to execute the below code?
- How to get the value of input hidden html from text editor to custom page template?
- Gravity form built in Captcha
- Custom gallery in wp3.5
- How to use theme function in post/page?
- Logic on a Gravity Forms redirect [closed]
- esc_url( ) won’t use https
- Why does the post_type_link hook everything twice?
- Warning: in_array() null given in PHP function
- Use post ID in functions.php file adminside
- use loop to return blog details
- How to add post meta in while loop?
- Adding function to child theme’s function.php
- Custom posts password protect
- WP Container Displaying Only on First Page of Archive
- Using Ajax to submit a form, and run a SQL Select query based on user input from the form
- Woocommerce – Exclude variation attribute on specific variation
- Custom PHP form needs refresh to load page correctly
- How to move a post from one category to another
- Show data obtained from a function and place it in a shortocode function
- How to override theme’s public static function inside of a trait?
- Advanced Custom Forms PHP formatting for do_shortcode
- Delete empty title_tags, find a h1 heading and echo it
- ACF under category name in shop page [closed]
- WP_Query To Display Product Of Brand On Taxonomy Page
- not able to access $_POST on backend profile update
- How can I export data without using any import/export plugin
- Search for images that width and height is more than 500
- wordpress ajax return 0
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- Overwriting a Shortcode
- Search box background on a different page template
- WP Ecommerce: Display the “Order Notes” as column in the Sales Log [closed]
- A next page function with shortcode?
- What is the wrong with this function to enqueue the scripts and styles to the theme? [closed]
- Custom Admin Menu Report for Specific User ID
- check difference between two timestamp in custom plugin