Exclude Certain Fields from Saving
Last updated
Last updated
In cases where the Line Item Editor is configured based on Opportunity Products, you might want to display both the Unit Price and Total Price fields. While both fields are editable in Opportunity Products, they cannot be saved simultaneously because the Total Price is automatically calculated and stored based on the Unit Price and Quantity.
It may seem sufficient to set the Total Price field to read-only. However, since the Line Item Editor relies on builder settings, a field marked as editable will still attempt to save internally, even if it appears read-only on the screen.
To ensure that fields like formula fields or other read-only fields are not saved, you must explicitly activate the Do Not Save setting for these fields.
When configuring standard objects like Opportunity, Quote, or Order, the Do Not Save setting is automatically enabled for the Total Price field when it is added to the Line Item Editor.