You need to sign in to do that
Don't have an account?

custom button to update a field
hi
i have an customobject. i have a view created to show some records. i want to have an ability to update a field in the custom object to true for all selected records. i have a custom button created and have it included in the view layout
I am not sure how to go about doing the update using java script. i have the behaviour as execute javascript and in onclick javascript i have
{!Appointment__c.test1__c}='true'
Test1 is the field which i want to update. check syntax give no errors but when i click the button its gives
A problem with the OnClick JavaScript for this button or link was encountered: syntax error
Any ideas, i dont mind using javascript or any other means to do a mass update.
Thanks
You should be doing somehting roughly like this... not 100% on the syntax but should be close...