Sample Regular Expression for email validation using Apex is given below
if(Pattern.matches('([a-zA-Z0-9_\\-\\.]+)@((\\[a-z]{1,3}\\.[a-z]{1,3}\\.[a-z]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})', email)){
//success
}
else{
//error
}
Cheers!!! Enj...
Hide the Current Date Link on an Inputfield
Nitesh Kumawat
No comments
The standard apex:inputfield component for a date field generates a link next to the input field, taking a lot of space. The link allows someone to easily enter the current date. However, when you use multiple date fields within a table component, it can be confusing for the user to have these extra links (see Screenshots). This recipe solves this by creating a Visualforce component that uses CSS...
Configuration and Customization in Salesforce.
Nitesh Kumawat
No comments
Configuration means by using UI we can
easily develop applications in salesforce.
Customization
means we can write
our own functionality ( Visualforce pages & Apex).
https://developer.salesforce.com/forums/?id=906F00000008p1FIAQ
https://success.salesforce.com/answers?id=90630000000hSZBAA...
Query in Custom Button in Salesforce
Nitesh Kumawat
No comments
{!REQUIRESCRIPT("/soap/ajax/14.0/connection.js")}{!REQUIRESCRIPT("/soap/ajax/14.0/apex.js")}
var recordtypeResultIDD = sforce.connection.query("Select Id FROM RecordType WHERE Name='Visit Contact' and SobjectType='Contact_Role__c'");records = recordtypeResultIDD.getArray("records");window.location="/a0B/e?CF00N9E000000KULE={!Visit__c.Name}&RecordType_ileinner="+records[0].Id+"&Recor...
What is Cloud
Nitesh Kumawat
2 comments