自訂連結範例:國際對應
此範例建立可顯示特定國家 Google 地圖的連結。
必要版本
| 提供版本:Salesforce Classic |
自訂按鈕和連結適用於下列版本:所有版本 Visualforce 頁面及 S-Control 可用於:Contact Manager、Group、Professional、Enterprise、Performance、Unlimited 及 Developer Edition |
| 需要的使用者權限 | |
|---|---|
| 建立或變更自訂按鈕或連結: | 自訂應用程式 |
-
使用下列屬性為帳戶定義連結。
顯示類型 詳細資料頁連結 行為 在新視窗中顯示 內容來源 URL 使用此範例程式碼。{! 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"))) } - 新增連結至帳戶版面配置。
另請參照:
此文章是否解決您的問題?
請讓我們知道,以便我們改進!
