function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
msmithey13msmithey13 

How to create a custom "Log a Call" button on the Account page?

I found several examples in the help pages but nothing works.  The last attempt is:

/00T/e?title=Call&what_id={!Account.Id}&followup=1&tsk5=Call&who_id={!Contact.Id}&retURL=%2F{!Account.Id}

I continue to get this error message:

na4.saleforce.com says:
A problem with OnClick JavaScript for this button or link has encountered:
Invalid regular expression flags

Can anyone assist here?

Thanks

Mark
 
msmithey13msmithey13
I continued trying different things and finally decided to attempt a URL based button, which functions perfectly.  This is what I ended up with: 
https://na4.salesforce.com/setup/ui/recordtypeselect.jsp?ent=Task&retURL=%{!Account.Id}&save_new_url=%2F00T%2Fe%3Ftitle%3DCall%26what_id={!Account.Id}&followup=1&tsk5=Call&who_id={!Contact.Id}&retURL=%2F{!Account.Id}

I don't know if the Javascript would have or would be better but this does work great.  I would still appreciate input.....