I'm trying to add an automate action button that will clear both the date and signature. This is what I have so far, set to a "execute php script".
Code: Select all
$entity_id = 96; //get entity ID
$item_id = [id]; //get current item ID
//prepare data to update
$data = [
'field_1606' => '', //Clear signature
'field_1613' => ' ' //Clear signature date
];
//run item update by id
items::update_by_id($entity_id,$item_id,$data);
Also, for the signature image, where are these stored and how do I remove them?