I am wanting to create a button similar to the Close Case button that will bring you to an edit screen with only the required fields that need to close the case.
I have created a layout for the button, but am at a loss on how to create the button to bring them to that edit screen and then once they are completed bring them back to the full layout.
Also I am wanting this to work in Salesforce1
Any help would be appreciated - Thank you!
Joanne,
What you are describing is exactly a use-case for a Visualforce page. If you only want to use fields that are already on the Case object, and just return them back to the case, then you won't even have to use any Apex, just pure Visualforce.
Try something like this:<apex:page standardController="Case">
<apex:form>
<apex:pageBlock title="Case #{!Case.Name} Information" mode="edit">
<apex:pageBlockButtons >
<apex:commandButton action="{!save}" value="Save"/>
<apex:commandButton action="{!cancel}" value="Cancel"/>
</apex:pageBlockButtons>
<apex:pageBlockSection title="Section 1" columns="2">
<apex:inputField value="{!Case.Field1}" />
<apex:inputField value="{!Case.Field2}" />
<apex:inputField value="{!Case.Field3}" />
<apex:inputField value="{!Case.Field4}" />
</apex:pageBlockSection>
<apex:pageBlockSection title="Section 2" columns="2">
<apex:inputField value="{!Case.Field5__c}" required="true" />
<apex:inputField value="{!Case.Field6__C}" required="true"/>
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form>
</apex:page>
I don't know if you've done any VF before, but hopefully this makes sense. You make a pageblock, then each collapsible section (like on a normal layout) is called a pageblocksection. Then you just put input fields into the page. When they hit the save button it should save that case and then take them back to the Case. You just need to make a button that sends them to this Visualforce page and then put that button on the Case layout.