Gravity Forum Custom Field Check box attribution

Ok Figured it out with a bit of tinkering with the above. Might not be ideal but it works. If someone has a better way of doing it please feel free to chip in explaining why its better 🙂

$gravity_form_id = '10'; // Gravity Forms ID
add_action("gform_after_submission_$gravity_form_id", "gravity_post_submission", 10, 2);
function gravity_post_submission ($entry, $form){

    $post_id = $entry["post_id"]; 

    $values = get_post_custom_values("services_available", $post_id);
    update_field("field_59d5ef43664cc", $values, $post_id);

}