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
edel32edel32 

Quotes tab s-controls

Hey
Im trying to add a new field called contract term to the quote app. I've successfully added it to
addProductsToQuote and editLineItems s-controls. when i try to add it to quoteLinesToOppRecordV3.htm s-control I get an error message. the code im using for this is p.set("Contract",q.get("Contract__c"));  it throws out an exception only if the word "contract" is used.
any ideas
thanks
jeremy_wjeremy_w
Not sure what you're trying to copy into.
Shouldn't you be doing this if you're copying the contract to each OpportunityLineItem:
p.set("Contract__c",q.get("Contract__c"));

But obviously you need to create the "Contract" field in the opportunity line item object too.

Or if you're trying to copy the contract to the opportunity then you'll need to update the opportunity object instead.


edel32edel32

Thanks jeremy.

That worked. I was just missing the __c for the first part of the code.