Custom Function: Update Records ( or

Custom Function: Update Records ( or

I have a view which presents names and addresses which the user downloads and uses to print a mail merge.

I want them to indicate which records they have downloaded and I don't want them to use the bulk edit mode so I made a "Mailed" date field and added it to end of the view.

Once the view has been filtered for the names the user wants to send mail to, I want them to activate a Custom Function which will change the value of the "Mailed" field to the current date.

I made this Function called Mail:

date Mail(date field)
{
    return zoho.currentdate;
}

The return of my Custom Function is date.  The only argument is Field.  For this argument the field Mailed is selected.

I expected the fields "Mailed" in my view to change to the current date when the Custom Function was activated...but NOOOOO, I too stupid to make this work.

PLEEESE YEE BENIFICIENT HIVE MIND, HAVE MERCY ON ME AND GRANT THIS SMALL FAVOR: Tell me what I am doing wrong.