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
sushieatersushieater 

submitting case from public site

I'm trying to create a case creation form on our public visual force site. I'm using the following code as a test and have tried to enable all permissions related to cases to the guest user account, but when I try to submit the form, I get a login page.

 

Is this possible what I'm trying to do? What am I missing? 

 

<apex:page standardController="case">
  <apex:form >
    <apex:pageBlock title="New Case" mode="edit">
      <apex:pageBlockButtons >
        <apex:commandButton action="{!save}" value="Save"/>
      </apex:pageBlockButtons>
      <apex:pageBlockSection title="My Content Section" columns="2">
        <apex:inputField value="{!case.subject}"/>
      </apex:pageBlockSection>
    </apex:pageBlock>
  </apex:form>
</apex:page>

 

There's a 2nd part to my task here also. I need to pre-populate some of the fields based on a post or get. I'm not sure how to populate the value of these special merge fields.

 

 

 Thanks