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
MDA_TeraMDA_Tera 

S-Control: Referencing a field on a related record

Hello.  I'm fairly new to Salesforce and am struggling with a few things. 
 
I am trying to automatically populate a field from the Account record on the Opportunity.  Ideally it would be great if this field is updated on the Opportunity should it be changed on the Account, but that is not necessary.  I created a lookup field, but this just gives the search option, it does not auto-populate the details.  My guess is that I need to create an S-Control to accomplish my goal, but I could be wrong.  I've been searching success.salesforce and have reviewed several of the sites & tools on S-Controls, but being a novice to programming, it's not very intuitive (to me).  Is there an easier way to accomplish this?  If not, does anyone else have a similar field reference configuration?
 
Any help would be appreciated.
Thanks,
 - Mark
cpaynecpayne
I'm interested in this too Mark!  Hope someone can post a solution (or better yet - sample scontrol code!).