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
Marco ZeuliMarco Zeuli 

Is there a way to prevent inline edit to update all fields on the layout?

On a standard object layout when you inline edit a single field, all the fields displayed on the layout are updated. Could be possible that only the field(s) that have been modified are updated?
Consider this scenario:
  • You are using the Service Console
  • You have an Account open as primary tab
  • You have a Case related to the account, open as a sub tab
  • You close the case using the standard Close button
  • Upon the case closure, an apex trigger will update a field called Status on the account from value "OLD_VALUE" to "NEW_VALUE"
  • You go back to account primary tab, where the status field is still showing as "OLD_VALUE"
  • You inline edit ONLY the account description and Save
As a result, account Status value is again "OLD_VALUE". Saving the account record after an inline edit will override the Status field also (and all others present on layout).
IGNACIO SARMIENTO LOSADA1IGNACIO SARMIENTO LOSADA1
Hi Marco,

You can create a record type and a page layout to your 'close' status and assign it to your user's profile. In the page layout editor you can set read only access to any field. Here you have an example.
User-added image

Let me know if this helps you.

Thanks