官术网_书友最值得收藏!

How to do it...

Carry out the following steps to create an account Credit Score formula field that uses the data contained in a custom field to display a Google Chart graphic:

  1. Click on the Setup gear icon in the top right-hand of the main Home page, as shown in the following screenshot:
  1. Click the Setup option, as shown in the following screenshot:
  1. Navigate to the Account customization setup page, by clicking the following: Objects and Fields | Object Manager | Account | Fields and Relationships.
  2. Locate the Fields & Relationships section on the right of the page.
  3. Click New.

We are presented with the Step 1. Choose the field type page.

  1. Select the Formula option.
  2. Click Next.

We are presented with the Step 2. Choose output type page.

  1. Type Credit Score Graphic in the Field Label textbox.
  2. Click on the Field Name. When clicking out of the Field Label textbox, the Field Name is automatically filled with the value Credit_Score_Graphic.
  3. Set the Formula Return Type as Text.
  4. Click Next.

We are presented with the Step 3. Enter formula page.

  1. Paste the following code in the formula edit box (as shown in the next screenshot):
 
/*********************************************************** 

Google Chart type Google-O-meter 

  
***********************************************************/ 
IF( 
  ISNUMBER( TEXT(Credit_Score__c) ),  
    IMAGE(  
      "http://chart.apis.google.com/chart?cht=gm" & 
      "&chxl=0:|0|50|100&chxt=y&chs=200x120&chls=2|10" &  
      "&chd=t:" & TEXT((Credit_Score__c)) & 
      "&chl=" & TEXT(Credit_Score__c), "Credit Score Graphic" 
    ), 
  "Not Specified" 
)
  1. In the Blank Field Handling section, select the option Treat blank fields as blanks, as shown in the following screenshot:
  1. Optionally, enter a value in the Description field.
  2. Optionally, enter a value in the Help Text field.
  3. Click Next.

We will be presented with the Step 4. Establish field-level security page.

  1. Select the profiles to which you want to grant edit access to this field via the field-level security. The field will be hidden from all profiles if you do not add it to the field-level security.
  2. Click Next.

We will be presented with the Step 5. Add to page layouts page.

  1. Select the page layouts that should include this field. The field will be added as the last field in the first two-column section of these page layouts. The field will not appear on any pages if you do not select a layout.
  2. Finally, click Save.
主站蜘蛛池模板: 滨海县| 惠州市| 东宁县| 浑源县| 德化县| 金华市| 冀州市| 昌图县| 巴林左旗| 罗源县| 突泉县| 涿鹿县| 中山市| 十堰市| 合肥市| 尼勒克县| 甘南县| 浦江县| 华安县| 赣榆县| 教育| 翁牛特旗| 青浦区| 随州市| 六盘水市| 麟游县| 拜泉县| 历史| 高雄市| 康保县| 察雅县| 贵定县| 隆昌县| 南丹县| 合山市| 微山县| 双城市| 静海县| 潞西市| 全州县| 定兴县|