+ Start a Discussion
ravikanth321ravikanth321 

Hi Have To Show an Alert If Check Box Is UnChecked On Click Of a Custom Button on Opportunity Page Layout

Mike.KatulkaMike.Katulka
You'd need to do a javascript button that looks at the opportunity field value, here's a start: http://www.vandeveldejan.com/tips/for-admins/13-creating-conditional-custom-buttons-in-salesforce-some-use-cases
BALAJI CHBALAJI CH
Hi Rashmi,
You can selecte the select the Content Source of Custom Button as OnClick Javascript and include below code in the formula.
{!REQUIRESCRIPT("/soap/ajax/25.0/connection.js")} 
{!REQUIRESCRIPT("/soap/ajax/25.0/apex.js")} 

var check= '{!Opportunity.Test__c}'; 

if (check == 0)
alert('Checkbox is Unchecked');
Here, Test__c is the API name of the checkbox on my Opportunity page. You can replace it with your checkbox name and also alert message.

Please let me know if that helps you.

Best Regards,
BALAJI