You need to sign in to do that
Don't have an account?
Christopher DeFilippi
Custom Button, Field Update
I am trying to create a button on a custom object so when clicked, it updates a checkbox field on the object. I am not a developer so I am reaching out to the pros!
1. Using Ajax toolkit - refer this article for sample (http://www.jitendrazaa.com/blog/salesforce/create-and-update-records-using-javascript-button-in-salesforce-ajax-toolkit/) - However you may find problem in future if your organization is going with lightning experience.
2. This is better solution - Create a flow (http://resources.docs.salesforce.com/198/10/en-us/sfdc/pdf/salesforce_vpm_implementation_guide.pdf) - Use FIeld update element and open Flow from Custom button. This answer might be helpful for you (http://salesforce.stackexchange.com/questions/18581/how-to-update-record-using-visual-workflow).
I'm not familiar with the flows but, I found a similar code from another article and revised it to what I need however, it is not working. The code was built for the opportunity field update.
Below, I came up with :