You need to sign in to do that
Don't have an account?
![realtimetasks1.3941822547955107E12 realtimetasks1.3941822547955107E12](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
trigger example
writing a trigger that will automatically uncheck the "opt in" box when the "opt out" button is populated
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Here are a couple of posts that has more information on executing an apex or trigger on button click http://developer.force.com/cookbook/recipe/creating-a-button-with-apex
http://sfdc.arrowpointe.com/2009/01/08/invoke-apex-from-a-custom-button-using-a-visualforce-page/