Posts

Showing posts from September, 2017

Radio Button using input tag with type=radio in VF page and action support tag

VF Page:  <apex:page standardController="User" extensions="UserTestController">      <apex:form >         <apex:pageblock >                 <apex:outputPanel id="ca"><apex:pageMessages /></apex:outputPanel>             <apex:outputPanel id="counter">             <table cellpadding="7" cellspacing="7" border="1">                             <th>Select</th>                            <th> User Name</th>       ...

Validation Rule/Workflow Rules/Approval Process/ Page layouts and Record Types

Validation Rule: Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record Validation Rules in Salesforce can help you enforce data quality. In other words, prevents users from saving incorrect data. Sample Validation Rules: https://developer.salesforce.com/docs/atlas.en-us.usefulValidationRules.meta/usefulValidationRules/fields_useful_validation_formulas_account.htm We can make a field required. We can limit the length We can limit the range Page layouts and Record Types: Different business process and different picklist values. http://www.salesforcetutorial.com/page-layouts-and-record-types-in-salesforce/ Workflow Rules: Workflow rules can help AUTOMATE the few actions such as ·       New  Tasks: Assign a new task to a user, role, or record owner.             Frequent Errors:             htt...

DatePicker in VF page

Image
Tried and tested this easy way. Use <apex:input> tag and refer the date variable in apex controller,which Shows up in date picker format VF Page:   <h4><b>Sample date: </b></h4>                            <apex:input type="date" value="{!sampleDate}"/> Controller: public Date sampleDate{ get; set; }          public pagereference saveRec(){           } Result:

Help Text on mouseover

Image
While using Title Attribute in <apex:selectOption> which is supposed to show the help text is not working, the below process works have a try!! Code: VF page:                            <apex:selectRadio layout="pagedirection" id="myList">                                                       <apex:selectOptions value="{!items}"/>                            </apex:selectRadio> Controller:  public List<SelectOption>  items =new List<SelectOption> ();  public List<SelectOption> getItems() {         List<SelectOption> options = new List<SelectOption>();         SelectOption so1 = new SelectOpt...