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

How to do it...

Carry out the following steps to create a formula field to display Salesforce images to graphically show the priority of case records:

  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 Case customization setup page, by clicking the following: Objects and Fields | Object Manager | Case | Fields and Relationships.

Locate the Fields & Relationships section on the right of the page.

  1. Click New.

We will be presented with the Step 1. Choose the field type page.

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

We will be presented with the Step 2. Choose output type page.

  1. Type Priority Graphic in the Field Label text box.
  2. Click on the Field Name. When clicking out of the Field Label text box, the Field Name is automatically filled with the value Priority_Graphic.
  3. Set the Formula Return Type as Text.
  4. Click Next.

We will be presented with the Step 3. Enter formula page.

  1. Paste the following code:
/*********************************************************** 

Priority Graphic for the Case, for High, Medium or Low. 

For high priority cases a red flag is displayed; for medium an orange is shown and for a low a green flag is shown. 

***********************************************************/ 

IMAGE  

(  

 IF( ISPICKVAL(Priority,"Low"), 

   "/img/samples/flag_green.gif",  

     IF( ISPICKVAL(Priority,"Medium"), 
       "/img/samples/flag_yellow.gif",  
         "/img/samples/flag_red.gif"  
       )  
       ), 
       "", 15, 15  
)
  1. Optionally, enter the following in the Description field:
Field to display an image according to whether the Case Priority is Low, Medium, or High 
  1. Optionally, enter the following in the Help Text field:
Field to display an image according to whether the Case Priority is Low, Medium, or High 
  1. In the Blank Field Handling section, select the option Treat blank fields.
  2. Click Next, as shown in the following screenshot:

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

  1. Select the profiles to which you want to grant read access to this field via field-level security. The field will be hidden from all profiles if you do not add it to 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.
主站蜘蛛池模板: 汕尾市| 扬中市| 藁城市| 定边县| 汉源县| 扶沟县| 东台市| 和顺县| 茶陵县| 青神县| 永嘉县| 孙吴县| 遂宁市| 安化县| 萍乡市| 沙湾县| 淄博市| 仙居县| 五原县| 莱西市| 仁化县| 宾川县| 五常市| 乐安县| 凌云县| 永胜县| 宜兰市| 汝城县| 玉山县| 凤台县| 永康市| 大洼县| 义乌市| 通州市| 牙克石市| 丹江口市| 木兰县| 榆中县| 高清| 黔东| 甘谷县|