Home Forums General Issues Using update_field to populate a message field


Using update_field to populate a message field

  • I am trying to programmatically update a message field using update_field function. The message field is inside of a repeater. The other 2 repeater fields are update correctly but the content is not added to the message field. I am wondering if it is possible to update the message field with update_field and if not how it could be done, in this case inside of a repeater.


    						// install_booking_ordered (repeater)
    						$field_key = "field_539840af324d2"; 
    						$value = get_field($field_key, $post_id);
    						// install_booking_ordered->title subfield
    						$value[] = array(
    							"field_539840d2324d3" => $component_title,
    							"field_539840df324d4" => 'no',
    							"field_539b0c5f32390" => '
    								This is in my message field
    							); //name sub field
    						// update acf field
    						update_field( $field_key, $value, $post_id );
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.