Skip to main content

Posts

Showing posts with the label Multiselct checkbox in salsforce

Displaying a picklist in Mulit Select Checkbox format in Salesforce

Hi All, Generally we provide flexibility to user so that user can select multiple value form a picklist at a time. This post is only for displaying a pick-list in multi select check-box format.   Here is the page:- <apex:page controller="multiselectCheckboxController ">     <style>     input[type='checkbox'] {         border: 1px solid #aaa;         display: block;     }     </style>    <apex:form>          <apex:pageBlock>         <apex:pageBlockSection columns="1">             <apex:pageblocksectionitem >                           <apex:outputlabel value="Industory" />                 <apex:selectcheckboxes layout="pageDirection" value="{!Industo...

How to permanently delete record from data base.

As we all know if we delete records from our org. It will be stored in recycle bin for 15 days. We can go to recycle bin and delete manually.  Suppose the requirement is when we delete records those records should be deleted from recycle bin. For this requirement we have to write a trigger on object.  trigger todelteRecordPermanent on Account (after delete) {     list<Id> Ids = new list<Id>();     for(Account  account: Trigger.old){         Ids.add(account.id);       }     Database.emptyRecycleBin(ids); }