In my Salesforce there is a Submit for approval process for the Opportunity object. I want certain fields in the Opportunity record to NOT be editable during the approval process. In order to achieve that I've implemented an apex code. The issue here is that the fields remain editable via inline editing. How can I make such fields ABSOLUTELY NOT editable via the inline editing but ONLY during the submit for approval process?
closed as off-topic by Adrian Larson♦, Boris Bachovski, Eric, Lance Shi, Ratan Paul Nov 11 '16 at 13:12
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions on problems in code you've written must describe the specific problem and include valid code to reproduce it. For help writing short, self-contained syntactically-valid examples, see: SSCCE.org" – Adrian Larson, Boris Bachovski, Eric, Lance Shi, Ratan Paul
How did you make the fields read only via apex code?
It sounds like you should be using a standard approval process with the record being locked on submission.
You can also deactivate inline editing in user interface.
You can also create a validation rule to catch people trying to edit the record.