Salesforce

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 ....

Salesforce

How to reset a visualforce page in Salesforce?

Sample Code: Visualforce page: <apex:page controller="Sample"><apex:form >    <apex:pageBlock >        <apex:panelGrid >            Name: <apex:inputtext />            Age: <apex:inputtext />            Addres: <apex:inputTextarea />                                </apex:panelGrid>        <apex:pageBlockButtons >            <apex:commandButton value="Reset" action="{!reset}"/>        </apex:pageBlockButtons>    </apex:pageBlock></apex:form>    </apex:page> ....