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

merge field from Contracts

Hi, I have created a custom object off the Contract called Contract_Products__c.  I then created an s-control that overrides the new button on the Contract Products.  The problem is my merge fields don't show up.  If I do something like {!Contract.Id} in my s-control I get nothing.  Same way for {!Contract.Name}.  I have this same logic in another standard to custom object we have, and it works fine.

Any ideas??? 
Greg HGreg H
In order for merge fields to work they need to have an record to reference. So if they are not working in your sControl then your sControl must not be aware of the actual record. In your override on the New button make sure you include the Id of the record from which you are accessing the sControl. You will pass the Id to the sControl using the parameter "&eid={Id}" or comething close to that.