Chapter 3. Capturing Data Using Forms

In this chapter, we will cover the following recipes:

  • Editing a record in Visualforce
  • Adding error messages to field inputs
  • Adding error messages to non-field inputs
  • Using field sets
  • Adding a custom lookup to a form
  • Adding a custom datepicker to a form
  • Retrieving fields when a lookup is populated
  • Breaking up forms with action regions
  • The Please wait spinner
  • Action chaining

Introduction

Forms are a key feature of any application that makes use of Visualforce. They provide a mechanism to capture data entered by the user and send this to the page controller for processing, for example, to create, edit, or delete sObject records, or to send the user to a specific page.

Users enter data through input components. Visualforce ...

Get Visualforce Development Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.