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
- start_lvl Ignored in Custom walker_nav_menu
- Enforcing password complexity
- Check if a menu is empty?
- How to insert PHP code in a WordPress Post
- How can I loop into two different DIVS without repeating the DIVs
- Removing unnecessary wordpress files
- Use is_product_category() properly
- PHP can I add line numbers to file_get_contents()
- Changing Woocommerce flat rate every nth number of items
- Convert all images to PNG on file upload
- If search results empty then execute certain code
- Custom location for attached images
- Way to querry data (tags) from a wordpress database?
- Using fwrite() and “a” appends multiple times instead of once
- Where in PHP do I move title and meta (date) to bottom of each blog section?
- How to display posts by current user in a drop down
- How do I add custom bulk actions to multiple custom post types?
- Making BuddyPress Activity Stream (Post Type) Featured Images Clickable [closed]
- Post + form + action + results on the same page
- how to refresh div on template part?
- Child page menu in sidebar
- How do I limit the number of forms a user can create in gravity forms?
- Widget back end radio button issue
- Detecting if parent page has gallery
- GET problem in WordPress
- Help with WordPress function inside a shortcode
- Upload non-featured image to image field
- InnerBlocks with allowedBlocks not working with acf_register_block
- Form Submission Not Working In Custom Theme
- WP All Import / Update stock quantity from multiple XML files
- PHP -> SQL Query with Summing
- Removing “Powered by” footer using child theme PHP [closed]
- How to style injected code in header section?
- Include a file that has a function in it
- SQL error with custom query
- Products listing check if meta checkbox is checked
- Bootstrap 4 Carosuel with ACF Repeater field
- How to preload header logo image in WordPress? like what’s the code and where do I put it?
- Contain multiple page templates in one PHP custom template file in WordPress?
- How do I reopen the (Popup Maker) after entering the correct password for a password protected page?
- require get_template_directory() . ‘path/to-my/file.php’ BREAKS customize > themes functionality
- Custom plugin: how do I call a PHP file if settings option is set to true?
- I want it to detect the duplicate comment and give a warning on the same page
- Edit a function to take different actions based on user role
- How to put 2 php codes in functions.php without site crashing
- WP HTTP API call response
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- WooCommerce Custom Tab with ACF Repeater Field
- Private messaging – Getting and displaying the avatar/url of a message recipient
- Postmeta not saving
- Using Nonce for my Form
- Fix My Custom Function: Remove Automatic
- WP Debug enabled Undefined index error in a widget
- Advanced custom fields Repeater conditional statement not working [closed]
- Show button in header when product custom field is not empty
- Why a class property becomes empty?
- Hide category by tag
- How do I stylize selected comments?
- add_rewrite_rule image from /images/site2/favicon.ico to /favico.ico