Visualforce Signature Component with HTML5 Canvas

I’ve come across the scenario a number of times where a client would like to have the ability to capture someone’s signature and keep it on a record in Salesforce.  This post describes a simple way to capture signatures in Salesforce using Visualforce, HTML5 Canvas, and Javascript Remoting. First, we start with a visualforce component […]

Add a Spinner on a Visualforce Page

Here’s a quick and easy way to add a spinner to a Visualforce page for when a user invokes an asynchronous action on a page and is waiting for an element to rerender. Add the following snippet to your visualforce page: <apex:actionStatus id=”pageStatus”> <apex:facet name=”start”> <apex:outputPanel > <img src=”/img/loading32.gif” width=”25″ height=”25″ /> <apex:outputLabel value=”Loading…”/> </apex:outputPanel> […]

Get a Field Label in a Visualforce Page

You can access the Label attribute of a field directly from a Visualforce page by using the following: <apex:outputLabel value=”{!$ObjectType.Account.fields.Name.label}” /> This gets the label for the “Name” field from the “Account” object.  You can interchange any sObject name and it’s corresponding field as needed.

Use a Fieldset in APEX and Visualforce

There are times where you may need to access fieldsets in APEX to dynamically generate pages in Visualforce.  In Apex, there are 2 main ways to do this, and you can select which approach you need based on what data you have available at runtime. Getting Fieldsets in Visualforce You can access fieldsets directly from a […]

How Field Trip Helps Clean Up Cluttered Salesforce Orgs

There’s an app on the Salesforce Appexchange called “Field Trip” that is great for cleaning up your objects.  Basically, you can run an analysis against any object in your org and see how often your fields are being populated.  This is great when you are coming close to field limits, or just want to remove […]

Pre Populate Forms in Salesforce using URL Hacking

Here’s an example of using URL hacking to pre-populate fields in a form on Salesforce.  The following can be set as a button action, or href on a page link that will pass parameters for whatever field I specify. This example is from a button on Opportunity that opens a Case with the Account and […]