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
Reid MaulsbyReid Maulsby 

Prepopulation Help

Hello
 
I've read various postings on this subject, but this just isn't working for me.  I'm replace the New button on a custom object (being created from another custom object).  It's is automatically linking the two custom objects, but I'm trying to pull the Account link to the child custom object.
 
When I run the code, the URL is showing the correct IDs that I'm trying to populate, but the variables are not passing any information, and the page goes into an infinate refresh loop.
 
Here is the code that I'm running:
 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<script language="JavaScript">
function redirect ()
{
parent.frames.location.replace('/a0P/e?retURL%2F{!SFDC_Acct_Plan__c.Id}&CF00NT0000000rFro_lkid={!SFDC_Acct_Plan__c.Id}');
}
redirect();
</script>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
This is setup as an HTML s-control.
 
Any and all help/insight is greatly appreciated.
Thanks
Reid