Skip to main content

Posts

Showing posts with the label how to attach a file from VF page

How to create a case record from a VF page and attach a particular file to the record?

Below is code snippet for the same. VF Page:- <apex:page controller="creatingcaseAttachment">   <apex:form >       <apex:pageBlock title="Customer Issue">                  <apex:pageBlockSection title="Case Creation ">               <apex:inputField value="{!customerCase.accountid}"/>                 <apex:inputField value="{!customerCase.contactId}"/>                 <apex:inputField value="{!customerCase.Origin}"/>                 <apex:inputField value="{!customerCase.Status}"/>                 <apex:inputField value="{!customerCase.Reason}"/>               <apex:inputField value="{!customerCase.Subject}"/>   ...