Try It Out: Set a Predefined Field Value on an Action

When we customized our Create a Case action, the Status field was already present, because it’s a required field for cases. Whenever Acme Wireless’ mobile technicians are out in the field and have to open a case, the case status is always going to be “New” for them. Rather than require them to fill in the Status field every time they open a case, let’s set up a predefined field value for it as “New”. Then we can remove it from the action layout, and whenever the Create a Case action is used to create a case, the status will automatically be set to “New”.

  1. In Setup, go to Customize | Accounts | Buttons, Links, and Actions.
  2. Click Create a Case.
  3. In the Predefined Values related list, click New.
  4. From the Field Name drop-down list, select Status.
  5. Set its value to New.
  6. Click Save.
    Now we need to remove the Status field from the action layout.
  7. On the action detail page, click Edit Layout.
  8. Click the Status field on the layout and drag it up to the palette.

    You can remove a required field from the action layout, but make sure that the field has a predefined value. Otherwise, users can’t create records.

    Tip

  9. Click Save.

OK, now let’s see it in action.