I know with workflows, you can set them to run with the security settings of a specific user or as a system admin. Is it possible to do the same thing with ribbon buttons executing jscript?
I have some records that are read-only to certain set of users, but I still need them to be able to click a button on the form to automatically do some activities and then set some attributes on the record saying when the button was clicked and by whom. The problem is that since the record is read-only, the javascript is giving an error message saying the user doesn't have sufficient privilege etc. I do have setSubmitMode("always") in my code which works for fields that are read-only fields but it does not work when the entire record is read-only.
The only solution that comes to mind is to temporarily make the user the owner of the record BEFORE running the code and then setting it back the way it was afterwards. This isn't the most elegant solution IMO, but I believe it should work.
Another option I have not fully considered is having the button execute a workflow as described in https://ribbonworkbench.uservoice.com/knowledgebase/articles/132235-create-a-workflow-short-cut-ribbon-button-no-code. However I'm not sure the jscript code I want to execute can be translated into a workflow.
*This post is locked for comments
I have the same question (0)