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
Sarath RSarath R 

How to write a javascript for a button

Hi

I need help in writing a javascript code for a button ( 'on click action' ) that should display a picklist field and allow me to update the record based on the piclikst. ( like changing the industry in the lead tab )
SonamSonam (Salesforce Developers) 
Following thread has sample code for JS to update a record depending on a field value:
https://developer.salesforce.com/forums/ForumsMain?id=906F00000008mxjIAA

Also, the AJAX toolkit guide has sample code which you can use to implement your requirement:
http://www.salesforce.com/us/developer/docs/ajax/