I'm having trouble using the gform_after_submission hook to set/update the value of a particular Field in the Entry just created. The field is just a simple Paragraph-Text field in my form, with visibility set to Admin-Only, and has Field ID of 13. I've tried things like:
$entry_id = $entry["id"]; RGFormsModel::update_lead_property($entry_id, $entry['13'], $myValue);
$entry["13"] = $myValue; RGFormsModel::update_lead($entry);
gform_update_meta($entry_id, $entry["13"], $myValue);
Any help much appreciated!