function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ 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