I'm kinda stuck right now and would appreciate some help!
I want to save the input from a gravity form into the users profile meta but it's a form users do more often so I need the value to be saved in a list every time it gets submitted. In the meta profile I'm using a custom textarea field to store the values.
Right now I'm using this code and it stores it one time but always overrides the recent value with the new value:
add_action("gform_after_submission_9", "gravity_post_submission", 10, 2);
function gravity_post_submission ($entry, $form){
//Gets field id 10
$values = rgar( $entry, '19' );
update_user_meta( get_current_user_id(), 'keywords', $values );
}
But I need the value to be saved every time in a new row of the meta textarea field and not be overwritten.
You guys have an idea how I could achieve this?
Would this work?