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
Peter Martensen 8Peter Martensen 8 

How can I pre-populate a custom field on the CPQ OpportunityLineItem from the Product before saving?

We use CPQ.  When adding a Product to an Opportunity, only a few fields copy to the OpportunityLineItem record while it is still being edited (Product Name, Sales Price).  CPQ states that I can't add a custom field to the OpportunityLineItem and populate it with a value before saving.  It's easy after saving, but I want the user to see the value before they save it.  The value is going to come from the Product that the new OpportunityLineItem record is being created from.
Thanks
AnudeepAnudeep (Salesforce Developers) 
Appears that it is a limitation. However, I recommend trying the solutions listed in the below documents to see if that helps

Auto-populate a field in CPQ

Pre-populate an Opportunity Line Item field using a trigger

Let me know if this helps, if it does, please close the query by marking it as solved. It may help others in the community. Thank You!
AnudeepAnudeep (Salesforce Developers) 
I also recommend taking a look at this idea