Conditional URL Button

Conditional URL Button:



Scenario:


Open a google US search if the country is USA else google UK search.


Solution:

{! 

IF(

Sample.BillingCountry = "US", 

"http://maps.google.com/maps?q=​"&Sample.BillingStreet&​"+"&Sample.BillingCity&"+​"&Sample.BillingState&"+​"&Sample.BillingCountry, 

(

IF(Sample.BillingCountry = "UK","http://maps.google.co.uk/maps?q=​"&Sample.BillingStreet&​"+"&Sample.BillingCity&​"+​"&Sample.BillingCountry, 

"http://maps.google.com")

)

}




Reference: https://help.salesforce.com/articleView?err=1&id=customize_functions_i_z.htm&type=5

Comments