this worked for me all the values are now showing in the front end but the problem is all the fields under that post is now visible. Is there a way for me to show only the field that I selected?
Already did Jarvis but if Switch it to field group other fields do Show their values except for the nested repeater fields. even added the acf_form_head() on my snippet.
`acf_form_head();
$post = get_post();
acf_form(array(
‘post_id’ =>$post->ID,
‘fields’ => array(‘field_617a3f34983fa’),
‘submit_value’ => ‘APPLY’,
));
?>’
I’m Also having a hard time showing data’s from form fields. Any tips on how to append the values to the front end form?
$post_data = array(
‘post_title’ => ‘new post’,
‘post_type’ => ‘proposal_entries’,
‘post_status’ => ‘publish’
);
$post_id = wp_insert_post( $post_data );
$ids = get_field(‘client’);
$user_info = get_userdata($ids);
$company = get_field(‘company_name’, ‘user_’. $ids);
$number = get_field(‘contact_number’, ‘user_’. $ids );
// Save a value for company
$field_key = “field_601776e86bca8”;
$value = $company ;
update_field( $field_key, $value, $post_id );
// Save a value for number
$field_key = “field_60e307cb6c6f1z”;
$value = $number;
update_field( $field_key, $value, $post_id );
update_field( $field_key, $value, $post_id );`