This demonstration shows how to add a fixed choice list field to an object in Application Composer. In this example, we are adding a status field to a trouble ticket application. Users will have the option of selecting one of two statuses for each trouble ticket: Open or Closed.
This is the third in a series of related demonstrations that use the example of creating a trouble ticket application to illustrate how to create a custom object and the related work area.
These demonstrations cover:
1. Creating a custom object
2. Adding a long text field to an object
3. Adding a fixed choice list field to an object
4. Adding a dynamic choice list field to an object
5. Creating a work area
6. Testing your work area
Steps:
In a related demonstration, we added a long text field to enter a description of the issue in the trouble ticket.
We will now add a second field, called Status.
Step 1
On the Fields page, click the Create a custom field button.
Step 2The Select Field Type window appears.
Step 3Users will be selecting the status of a trouble ticket from a list.
Click the Choice List (Fixed) option.
Step 4Click the OK button.
Step 5The Create Fixed Choice List page appears.
Step 6Enter the field name users will see into the Display Label field.
Enter "Status".
Step 7The application automatically populates the Name field. You must ensure that this internal name, which is not displayed for users, is unique.
Step 8In the List of Values region, click the Create a New Lookup Type button.
Step 9
The Create Lookup Type window appears.
Step 10Enter a name for your lookup type into the Meaning field.
Enter "Trouble Ticket Status".
Step 11Enter a unique name into the Lookup Type field. This name is internal to the application and is not displayed to users. No spaces are permitted in any internal name.
For example, enter "XY_TT_STATUS".
Step 12Now add the two status values, Open and Closed, in the Lookup Codes region.
Step 13
Click the Create Lookup Code button.
Step 14In the Meaning field, enter the first status the user will see.
Enter "Open".
Step 15In the Lookup Code field, enter the internal name which is not displayed to the user.
Enter "Open".
Step 16You want Open to be the first value displayed in the list, so enter "10" as the Display Sequence.
Step 17Use the same procedure to enter the second value: Closed, with a display sequence of 20.
Because this value is higher than 10, Closed will show up as the second value in the list.
Step 18Click the Save button.
Step 19The application returns you to the Create Fixed Choice List page.
Now that you have defined the list of statuses, you want to set Open as the default value when users create a trouble ticket.
Step 20
In the Default Value region, click the Default Value list.
Step 21Click the Open list item.
Step 22Click the Save and Close button.
Step 23This completes the demonstration of adding a fixed choice list field to an object.
In a related demonstration, you will learn how to add this custom field to the trouble ticket's work area. Your users won't be able to view this field until you add it.