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
CRMsimpleCRMsimple 

S-Control for "New" button override - Question?

I have a custom list button that overrides the standard "New" button on a custom object. The custom object has a master detail relationship with Account. The problem I'm having is this:

1. Causes double tabbing
2. Doesn't re-direct to the Account page that it was created from after saving.

I have the related account Id as the lkid and the retURL and the saveURL. I essentially just copied the URL from my browser when using the standard "New" button for that custom object and inserted the appropriate merge fields and then created the s-control. I'm thinking there must be some way to get me back to the parent location and to kill the double tabbing issue.

Any thoughts?
Code:

https://na5.salesforce.com/a0E/e?CF00N70000001aAkF={!Account.Name}
&CF00N70000001aAkF_lkid={! Account_Profile__c.Return_to_AccountId__c }
&saveURL=%2F{!Account_Profile__c.Return_to_AccountId__c}



Message Edited by CRMsimple on 06-13-2008 11:50 AM

Message Edited by CRMsimple on 06-13-2008 11:52 AM

Message Edited by CRMsimple on 06-13-2008 12:03 PM
werewolfwerewolf
Amusingly someone else had a very similar question today.  Have a look at this thread, it should help some:

http://community.salesforce.com/sforce/board/message?board.id=general_development&thread.id=19406