Hi @katy87,
Got a small function for you to reset a specific form.
//add this to your functions.php
function resetFormDownloadCount($form_id) {
$form_meta = GFFormsModel::get_form_meta($form_id);
if (array_key_exists(\GFExcel\GFExcel::KEY_COUNT, $form_meta)) {
$form_meta[\GFExcel\GFExcel::KEY_COUNT] = 0;
GFFormsModel::update_form_meta($form_id, $form_meta);
}
}
// now let's reset a form. Here we are resetting form: 1.
resetFormDownloadCount(1); // remove or escape this line after the reset
When it is reset, remove, or escape the last line (with //
in front of it) to prevent it from being continously reset, and stay forever young, eh.. zero.
Please let me know if this worked for you!