Adding a Fixed Choice List Field to an Object in Application Composer


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:

  1. 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
  2. On the Fields page, click the Create a custom field button.

    Step 2
  3. The Select Field Type window appears.

    Step 3
  4. Users will be selecting the status of a trouble ticket from a list.

     

    Click the Choice List (Fixed) option.

    Step 4
  5. Click the OK button.

    Step 5
  6. The Create Fixed Choice List page appears.

    Step 6

  7. Enter the field name users will see into the Display Label field.

     

    Enter "Status".

    Step 7
  8. The application automatically populates the Name field. You must ensure that this internal name, which is not displayed for users, is unique.

    Step 8
  9. In the List of Values region, click the Create a New Lookup Type button.

     

    Step 9
  10. The Create Lookup Type window appears.

    Step 10
  11. Enter a name for your lookup type into the Meaning field.

     

    Enter "Trouble Ticket Status".

    Step 11
  12. Enter 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 12
  13. Now add the two status values, Open and Closed, in the Lookup Codes region.

     

    Step 13
  14. Click the Create Lookup Code button.

    Step 14
  15. In the Meaning field, enter the first status the user will see.

     

    Enter "Open".

    Step 15
  16. In the Lookup Code field, enter the internal name which is not displayed to the user.

     

    Enter "Open".

    Step 16
  17. You want Open to be the first value displayed in the list, so enter "10" as the Display Sequence.

    Step 17
  18. Use 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 18
  19. Click the Save button.

    Step 19
  20. The 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
  21. In the Default Value region, click the Default Value list.

    Step 21
  22. Click the Open list item.

    Step 22
  23. Click the Save and Close button.

    Step 23

This 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.

Table of Contents  Start Topic