You need to sign in to do that
Don't have an account?
noreaster
Default Due Date for a Custom Button to create a new task
I am cereating a button that will create a new task. Is there a way to default the 'Due Date' to Today and also have the record automatically save? I am using 'tsk4' to try and default due date but its not working. Here is my code. Thanks
https://na5.salesforce.com/00T/e?who_id={!Account.Id}&what_id={!Opportunity.Id}
&RecordType=012700000005jvM&ent=Task
&tsk1_lkid={!Opportunity.OwnerId}
&tsk1={!Opportunity.OwnerFullName}
&tsk4 ={!TODAY()}
&tsk12=Completed
&tsk5=Call
&00N70000002OQDq=Left Message
&tsk6=Left Message
&Save=X
tsk4 should be correct; it works in my test organization.
"Save" should be "save" (all lower-case).
You should consider using URLFOR to generate the correct link, as it makes the overall code easier to read and shorter, plus if an update changes one of those URLs, it won't break your button as easily.
Thanks for the reply. For some reason tsk4 is not working for me. Also can you send an example of 'urlfor'......I'm not familiar with that function.
Hello, noreaster,
You may also want to consider promoting this idea: Default value for Task "Due Date"
/00T/e?what_id={!Opportunity__c.Id}&tsk5=Contact&tsk12=Completed&tsk4=
{!MONTH(TODAY())}/
{!DAY(TODAY())}/
{!YEAR(TODAY())}
&&&retURL={!Opportunity__c.Id}