0

Having a time of setting this if statement specifially where im setting the condition of callerId.id not null or blank.

  if (callerId.id != null){
                    var newLead = "/"+callerId.id;
                    sforce.interaction.screenPop(newLead, true);
                }

thanks

4
  • What is callerId?
    – EricSSH
    Commented Oct 7, 2014 at 21:57
  • got it figured out on > if (callerId.id.length = 18){ Commented Oct 7, 2014 at 22:08
  • 5
    Hopefully you have a == 18 and not a =18, = is an assignment operator, == is a comparison operator. if you do caller.id.length = 18 your if loop will always be true
    – Rao
    Commented Oct 7, 2014 at 22:10
  • thanks Eric, yes ran into that, ended up using if(results.length > 0) and it worked like a charm within the logic. Commented Oct 13, 2014 at 17:40

0

You must log in to answer this question.

Browse other questions tagged .