Salesforce

Salesforce

How to get the currency symbol in Visualforce page?

Use <apex:outputField/> to show the currency symbol, instead of using <apex:outputText/>. Sample Code: Visualforce page: <apex:page controller="Sample">    <apex:pageblock >        <apex:pageBlockTable value="{!OpptyList}" var="O">            <apex:column value="{!O.Name}"/>            <apex:column >                <apex:outputField value="{!O.Amount}"/>            </apex:column>        </apex:pageBlockTable>    ....

Salesforce

How to check whether a field value is null or blank in Visualforce

Sample Code: Visualforce page: <apex:page controller="Sample">    <apex:pageblock >        <apex:pageBlockTable value="{!MembList}" var="M">            <apex:column value="{!M.Name}"/>            <apex:column >                <apex:outputText value="{! IF((M.Age__c == null), 'NA', M.Age__c) }"/>            </apex:column>        </apex:pageBlockTable>    </apex:pageblock></apex:page> Apex Controller: public class ....