Hi
I am looking at ways of updating saved leads after the initial lead has been saved. I have been digging around forms_model.php and came up with the following code:
@include_once(WP_PLUGIN_DIR . "/gravityforms/gravityforms.php");
@include_once(WP_PLUGIN_DIR . "/gravityforms/forms_model.php");
$rg = new RGFormsModel();
$lead_id = 12;
$rg->update_lead_property($lead_id, 'custom', 200);
If I am trying to adjust a field within the rg_lead table (starred, ip, etc) then it would appear to work. However I cannot get it to update any value in the rg_lead_detail table - the custom field data for my form.
Is there a function or class available for interacting with the rg_lead_detail table. Something like:
$rg->update_lead_property_meta($lead_id, 'custom', 200);
Thanks