How to disable apex:commandButton and enable after the action?

<Apex:commandButton Value="Search" action="{!Search}" onclick="this.disabled=true;this.value='Searching..';this.form.submit();" oncomplete="this.disabled=false;this.value='Search';"/>

Related Posts:

  • Profile in salesforce ·   Profiles define how users access objects and data, and what they can do within the application. When you create users, you assign a … Read More
  • Security in salesforce     1.  Internal Security – Profile Permission set OWD  (Organization wide default) User Role Sharing Rule 2. &nb… Read More
  • Licence in salesforce A user license determines the baseline of features that the user can access. Every user must have exactly one user license. Salesforce offers these… Read More
  • Parent to Child SOQL Account to Contact -Parent to Child SOQL Select id, Name,(Select Name,Birthdate,Email from Contacts) from Account where id=… Read More
  • LeadConvert The convertLead Database method converts a lead into an account and contact, as well as (optionally) an opportunity. TheconvertLead t… Read More

0 comments:

Post a Comment