+ Start a Discussion
sreejasreeja 

how to enable and disable a button in salesforce on click

I have a requirement that , i had created a customobject __name , the save option should enable until the record has entered some value, and  edit button should be in the disable mode.

 in secnario 2: for edit the record, the save button should not be enable untill the record value is entered, if it is not entered , disable mode.. how to work with this in salesforce .. any example will be helpful
 
Best Answer chosen by sreeja
SandhyaSandhya (Salesforce Developers) 
Hi,

Refer below blogs where you have sample code for the same.

http://blogatsalesforce.blogspot.com/2015/04/enable-disable-buttons-on-standard.html
 
http://www.infallibletechie.com/2013/12/how-to-disable-and-enable-button-in.html
 
Please mark it as solved if my reply was helpful. It will make it available for other as the proper solution.
                                             
Best Regards
Sandhya