It is very handy to disable buttons after they have been pressed. This lets the user know that the button was in fact pressed, and it prevents the button’s action from being executed multiple times. The Visulforce component apex:actionStatus gives us an easy way to accomplish this. Here are some things to take note of…
Read moreCategory: Visualforce
Salesforce Visualforce markup language
Visualforce Datepicker Manipulation and Day of Week Display
Hide the Datepicker Link for the Current Date {!BirthdateDOW} {!StringDateDOW}
Read moreMultiselect Picklists for User Search and Selection using Apex and Visualforce
Below is a component that will allow you to search and select Users. It was created to mimic the experience of selecting multiple users in the Task creation window. However, it would be easy to change the reference from the User object to almost any other object. An initial list of selected users can be…
Read moreVisualforce Help Text and a Popup Tool Tip
Visualforce Field Help Text The help icon can be added to a Visualforce field within an apex:pageBlockSectionItem. Access the help text using the $ObjectType api. Put it in the helptext attribute of the apex:pageBlockSectionItem. {!$ObjectType.Account.Fields.Phone.InlineHelpText} Easy Hover Tooltip The following may help if you are not using the apex:pageBlockSectionItem. I’ve used this technique in the…
Read moreGet the Salesforce Session ID
Visualforce {!$API.Session_ID} Documentation: $API Variable Methods Apex String SessId = Userinfo.getSessionID(); Salesforce Documentation: UserInfo Methods Note: The session ID generated in the Visualforce page will not be the same as Userinfo method.
Read more