field is updating in the back-end however if I use [frm-field-value field_id=73 entry="229"] --> it shows the old value... Never the updated one... So it seems it is not really updating it...
Below the function I have:
add_action('frm_after_create_entry', 'frm_update_entry_answer1', 30, 2);
function frm_update_entry_answer1($entry_id, $form_id){
if ( $form_id !== 19 ) { //Change 997 to the ID of your update form
return;
}
$entry_id = $_POST['item_meta'][105]; //change 9353 to the ID of the field in your update form that has the entry id
$field_id = 73; // change 9352 to the ID of the field in your main form that's to be updated
$new_value = approved; // change 'Approved' to the value you want to set the field in your main form
$added = FrmEntryMeta::add_entry_meta( $entry_id, $field_id, null, $new_value );
if ( ! $added ) {
FrmEntryMeta::update_entry_meta( $entry_id, $field_id, null, $new_value );
}
}