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
Judy SJudy S 

Is there a way to create case without create case permission in Visualforce page?

We are in the process of creating a Salesforce Community, one of the function is to allow users to submit cases (enhancements, questions, etc...) to Salesforce Administrators.  We don't want to expose the Create Case permission to all the users and so we just to accomplish that with Visualforce page and custom controller.  There are two challenges we are facing.  If we use InputField element, the box is not available to users for enter input but the user is simply able to click Save to create a blank case.  If we use the InputText element, the box is available but clicking Save does not create a case and the debug log shows the following error message.  The error goes away if we enable Create case permission for the user.  Is there a workaround on this issue?  The user can create case as I mentioned so it's not a clean permission issue.  Can VF page be configured to ignore object and field permission just as in Apex?  Thanks in advance for any feedbacks!

|EXCEPTION_THROWN|[EXTERNAL]|System.VisualforceException: Create access denied for Case, controller action methods may not execute.