Field not updating with Button funtion
Hello,
I am trying to use a button/function that is supposed to update a Field in our Case module (renamed Case/RMA) to automatically add the current date when the button is pressed.
This is the code:
current = zoho.currentdate;
update = zoho.crm.updateRecord("Cases",csid,{"Date_eqpt_received":current});
return "Date updated";
The button is available in the Case/RMA details page, and when clicked, the "Date Updated" pop-up message does appear, but the field remains blank.
Any suggestions?
Thanks!