Hi – So I have the GF checkbox to ACF checkbox dealt with, basically serialize the data:
`$post_data[‘post_custom_fields’][$key_name] = serialize(explode(‘,’, $post_data[‘post_custom_fields’][$key_name]));
But when trying to do similar for multi select, the multi select ACF only selects first option.
This is a problem because when the post is created via GF to Custom Post Type, and then the post is saved again, the serialized data from the use input (which shows multi-selections) is saved over with the first selection).
As in, I use GF to Custom Post Type to create a post with a multi-select meta field. Before saving that post I var_dump out the get_field( $post_id, ‘multi_select’) and i see the two user selected values. So they are there, but when the post is then saved, published, etc, since the ACF multi-select only showing the fist value, the user submitted values are overwritten.
So, how to get GF multi-select values saved into an ACF multi select. Serializing the data doesn’t appear to work like it does with checkboxes. // the checkbox solution // http://wordpress.stackexchange.com/questions/78826/inserting-gravity-form-checkbox-values-into-advanced-custom-fields