Monday 14 September 2015

How to show processing image in visualforce page using actionstatus attribute

         Here is the snippet to display processing image on button click in visualforce page. You can view the list of icons from this link.

Sample Code: 

  1. <apex:page>
  2.     <apex:form>
  3.     <apex:commandButton value="Save" reRender="processing" status="processing" /> <br/>

  4.     <apex:actionStatus id="processing">
  5.         <apex:facet name="start">
  6.             <apex:outputPanel >
  7.                 Processing...
  8.                 <img src="/img/loading.gif" />
  9.             </apex:outputPanel>
  10.         </apex:facet>
  11.     </apex:actionStatus>

  12.      </apex:form>
  13. </apex:page>

No comments:

Post a Comment

Activities: Assign Tasks to a Queue Salesforce Lightning

Salesforce announced to assign Tasks to a Queue beginning from Spring'20 release. How does it work? In Setup, enter Queues in th...