How do you hide Header and Sidebar in Visualforce page?
To hide Header and Sidebar on Visualforce page, use 'showheader' and 'sidebar' attributes in <apex:page>. Sample code: <apex:page showHeader="false" sideBar="false" > Cheers!!!
To hide Header and Sidebar on Visualforce page, use 'showheader' and 'sidebar' attributes in <apex:page>. Sample code: <apex:page showHeader="false" sideBar="false" > Cheers!!!
To check whether an object has accessibility on visualforce page, use the below code {!$ObjectType.MyCustomObject__c.accessible} It returns true or false. Sample code: <apex:page > Accessibility for Object 'Member__c' is {!$ObjectType.Member__c.accessible}</apex:page> ....
Visualforce page: <apex:page controller="sample"> <apex:pageBlock > <apex:pageBlockTable value="{!mem}" var="m"> <apex:column value="{!m.Name}"/> <apex:repeat value="{!m.Interest__r}" var="i"> <apex:column value="{!i.Name}"/> </apex:repeat> </apex:pageBlockTable> </apex:pageBlock></apex:page> ....
If your field Should contain number and (',',';', and '/') special characters alone, use the below validation rule Validation Rule: NOT( REGEX( SLASerialNumber__c , "[0-9,;/]*") ) Cheers!!!
Sample Code: Visualforce page: <apex:page controller="sample"> <apex:pageBlock > <apex:pageBlockTable value="{!acct}" var="a"> <apex:column value="{!a.Name}"/> <apex:repeat value="{!a.Contacts}" var="c"> <apex:column value="{!c.Name}"/> </apex:repeat> ....
INCLUDES keyword is used as filter for multi-select picklist in Salesforce. Sample Query: SELECT Name, AccountNumber, Territories__c FROM Account Where Territories__c INCLUDES ('North','South','') here North, South and '' are values. ....
1. Go to Setup --> App Setup --> Create --> Apps. 2. Select your App. 3. Click Edit or Directly click Edit link associate with your App name. 4. Change ....
Sample Regular Expression for email validation using Apex is given below Sample Code: if(Pattern.matches('[a-zA-Z0-9._-]+@[a-zA-Z]+.[a-zA-Z]{2,4}', email)) { //success } else { ....
The recordSetVar attribute not only indicates that the page uses a list controller, it can indicates the variable name of the record collection. This variable can be used to access ....
JSON stands for “Java Script Object Notation“. JSON.serialize() is used to generate JSON. It is a lightweight data-interchange format. JSON is built on two structures: A collection of name/value pairs. ....