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
Guyver118Guyver118 

how to return user to master object in master detail relationship?

Hi i have master detail relationship where address manager is the master and addresses is the detail relationship now when creating new addresses in manager is there a way to redirect the user to the manager page and not the address view state i.e. i have been doing this with a new button

 

 

 

{!REQUIRESCRIPT("/soap/ajax/15.0/connection.js")} window.parent.location.href = "{!URLFOR($Action.Address_Exclusion__c.New, null, [CF00NR0000000XT3n=Address_Exclusion__c.Address_Manager__c, CF00NR0000000XT3n_lkid=Address_Exclusion__c.Address_ManagerId__c, retURL=URLFOR( $Action.Address_Manager__c.View, Address_Exclusion__c.Address_ManagerId__c)], true)}";

 but with no luck it still just redirects the user once the new record address is entered???

 

 

Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf
See what happens if you set saveURL to that address in addition to retURL.

All Answers

werewolfwerewolf
See what happens if you set saveURL to that address in addition to retURL.
This was selected as the best answer
Guyver118Guyver118
werewolf ur awsome :0