{!REQUIRESCRIPT('/soap/ajax/35.0/connection.js')} {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js')}; {!REQUIRESCRIPT('//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js')}; {!REQUIRESCRIPT("/soap/ajax/34.0/apex.js")}; var Opportunity = new sforce.SObject('Opportunity'); var result = sforce.connection.describeSObject("Opportunity"); Opportunity.Id = "{!Opportunity.Id}"; var EstimateType = "{!Opportunity.Estimate_Type1__c}"; var StageName1 = "{!Opportunity.StageName}"; var Loss_Reason = "{!Opportunity.Loss_Reason__c}"; var otherValext = "{!Opportunity.Loss_Reason_if_Other__c}"; var Estimate_Reason = "{!Opportunity.Estimate_Reason__c}"; var manual_amount = "{!Opportunity.Manual_amount__c}"; Opportunity.StageName = "Opportunity Lost"; jQuery(function() { jQuery('head').append(''); if(EstimateType == "Estimate Sent" || StageName1 == "Estimate Sent"){ var html ='
Move Opportunity to Lost
Loss Reason | |
Move Opportunity to Lost
Estimate Type | |
Estimate Reason | |
Loss Reason | |