You need to sign in to do that
Don't have an account?
Stefan
S-Control to Override New Account button
Can anyone help with the code for a new button to override the Account tab New Account button.
I am looking to populate a custom Division list field on the Account with the users division.
<script>
var newUrl = '{!URLFOR($Action.Account.New , null, null, true)}';
var cancelUrl = '&cancelURL=/';
cancelUrl += '001/o';
newUrl += '&00N40000001kkrc={!$User.Division}';
newUrl += cancelUrl;
newUrl += '&retURL=$Request.retURL';
window.parent.location.href = newUrl;
</script>
I have a walk through of building a custom link/button that might give you an idea of how passing data through the URL is possible. If you have other questions then please let me know. There are also a couple solutions in the SF system on creating records through custom links but I felt mine gives more information.
... I forgot to let you know the walk through is on my site :smileyhappy: You can go to my site and click on the solutions tab to get the information.
Message Edited by TCAdmin on 07-08-2008 10:08 AM
This will take you right to it: http://www.crmsetup.com/solutions.htm