You need to sign in to do that
Don't have an account?
MLamb2005
Removing Task Reminder with javascript
Hey all,
We've got a custom button on our Tasks and Events called 'Mark Complete' that executes the code below. Is there a way to also remove or disable the reminder for the task at the same time?
Thanks!
Matt
Matt
Code:
{!REQUIRESCRIPT("/soap/ajax/8.0/connection.js")} var newRecords = []; var c = new sforce.SObject("Task"); c.id ="{!Task.Id}"; c.Status= "Complete"; // Reminder added by matt... //c.Reminder = 0; newRecords.push(c); result = sforce.connection.update(newRecords); window.location.reload();
Good catch! It should mark the item as "Completed" and not "Complete". That will actually Close the item and drive it into the Activity History. The updated code is below...
As far as making it a link, I'm not sure how you would accomplis this. Maybe try overriding the 'Close' button?
Best of luck,
Matt
All Answers
There goes the reminder!
Message Edited by sfdcfox on 04-03-2008 04:54 PM
Good catch! It should mark the item as "Completed" and not "Complete". That will actually Close the item and drive it into the Activity History. The updated code is below...
As far as making it a link, I'm not sure how you would accomplis this. Maybe try overriding the 'Close' button?
Best of luck,
Matt