Industry Delete restriction
Summary:
There is a customer requirement for the Industry field, where they want to ensure that it remains non-editable. Since making the field non-editable directly is not feasible, we plan to proceed with a Groovy script to restrict changes. We are able to handle isNew()
and isModified()
scenarios successfully. However, when the user deletes or removes the Industry value, we are unable to trigger the script.
can you please helps us with the sample groovy script to restrict the Industry value deletion from Account Object.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):