Skip to main content
Gorav Seth (Ashoka) 님이 #Data Management에 질문했습니다
I am trying to make a custom link to an external website. There are 2 possible scenarios which need different links, for which I want to use an IF statement.

 

Each link works fine on its own (e.g. the custom link is just populated w/ http://www.yyy.com/abc, but if I incorporate an IF statement, everything stops working. 

 

Problems include:

 

1. the URL gets added onto https://www.salesforce.com/na2/xxxxx

 

2. the merge fields stop working.

 

So...is it possible to include an IF statement in a custom link?  Any tips on what needs to be done?

 

Thanks

 

Gorav
답변 2개
  1. 2012년 3월 12일 오후 8:56
    Hey Gorav,

     

    You can indeed do this.

     

    Make a custom formula field that returns text. You can then set up your fomula to look something like:

     

    IF( 

     

    Field__c = Criteria, "

    http://website1.com", "http://website2.com")

     

    Hope this helps,

     

    David

     

    Duckyforce
0/9000