• Kyle Floersch 1
  • NEWBIE
  • 10 Points
  • Member since 2016
  • Clearbridge Investments

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
I have a custom button that I would like to validate against the Status field. 
If Status does not equal "Approved by Business Manager" return an error message. 

I have tried the following but does not work:

IF({!ISPICKVAL( Invoice__c.Status__c , "Approved by Business Manager")},
/apex/loop__looplus?sessionId={!$Api.Session_ID}&eid={!Invoice__c.Id}
&ddpids=a0Z50000009UjxA&deploy=a0Y500000091MwT
&contactid=0035000002ZrYHU,
Alert('Value can only be Approved by Business Manager'))
I have a custom button that I would like to validate against the Status field. 
If Status does not equal "Approved by Business Manager" return an error message. 

I have tried the following but does not work:

IF({!ISPICKVAL( Invoice__c.Status__c , "Approved by Business Manager")},
/apex/loop__looplus?sessionId={!$Api.Session_ID}&eid={!Invoice__c.Id}
&ddpids=a0Z50000009UjxA&deploy=a0Y500000091MwT
&contactid=0035000002ZrYHU,
Alert('Value can only be Approved by Business Manager'))