• Minky Hyun
  • NEWBIE
  • 20 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 4
    Replies
I have the following OnClick Javascript code on custom Convert button on a lead page, and I have 2 "if" statements, but only the 2nd one is firing even though both if statement conditinos are met.  Here's the code:

**********

if('{!Lead.Established_Need__c}'=='false') 

alert('You must establish need before converting the lead'); 


if('{!Lead.Status}'!='Qualified') 

alert('Status should be Qualified to convert the Lead'); 


else 

window.location.href='/lead/leadconvert.jsp?retURL={!Lead.Id}&id={!Lead.Id}' 
}

******

Can anyone tell me why?
I have OnClick Javascript code on a custom Convert button on a Lead page that I'm trying to modify by adding another check, but I got this error.  What am I doing wrong?

***************************
if((ISPICKVAL( Check_Box_c=false))) 

alert('Checkbox must be checked before proceeding'); 


if('{!Lead.Status}'!='Qualified') 

alert('Status should be Qualified to convert the Lead'); 


else 

window.location.href='/lead/leadconvert.jsp?retURL={!Lead.Id}&id={!Lead.Id}' 
}
I have a few changes in the Sandbox to see how they would work in production.  These involves new fields and associated validation rules and nothing else.  What is the quickest and easiest way to get these changes only published into production environment?
I don't think there is an easy way to do this, but I thought I'd ask.  Thanks!
I've been a long-time Salesforce administrator and understand how to make small changes on the live environment, but I'd like to learn how to make a small change to an existing Apex trigger that my development vendor created.  I believe I cannot make the change on the fly on the live environment but I never had to manage sandbox, make changes there and push it out to the live site.  How do I get started?  Can I simply use online training tools to learn the steps and manage this on my own?  
I don't think there is an easy way to do this, but I thought I'd ask.  Thanks!
I have the following OnClick Javascript code on custom Convert button on a lead page, and I have 2 "if" statements, but only the 2nd one is firing even though both if statement conditinos are met.  Here's the code:

**********

if('{!Lead.Established_Need__c}'=='false') 

alert('You must establish need before converting the lead'); 


if('{!Lead.Status}'!='Qualified') 

alert('Status should be Qualified to convert the Lead'); 


else 

window.location.href='/lead/leadconvert.jsp?retURL={!Lead.Id}&id={!Lead.Id}' 
}

******

Can anyone tell me why?
I have OnClick Javascript code on a custom Convert button on a Lead page that I'm trying to modify by adding another check, but I got this error.  What am I doing wrong?

***************************
if((ISPICKVAL( Check_Box_c=false))) 

alert('Checkbox must be checked before proceeding'); 


if('{!Lead.Status}'!='Qualified') 

alert('Status should be Qualified to convert the Lead'); 


else 

window.location.href='/lead/leadconvert.jsp?retURL={!Lead.Id}&id={!Lead.Id}' 
}
I don't think there is an easy way to do this, but I thought I'd ask.  Thanks!