function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SidMSidM 

Field validation on Force.com Sites

Hi,

 

We have a requirement to produce a form on force.com sites for use by our client's customers and as this is a form on a consumer website (not an internal tool), there is a heavy focus on the user experience, particularly surrounding the way any field validation errors are displayed to the user.

 

Currently, either having the validation defined at the object level, or as validation rules means that when the user submits the multi-section form, they will only get back the first validation error.

 

This could potentially result in the user having to fix their mistake and re-validate so many times that the user experience will become a major issue.

 

What I would like to know is any mechanism by which we can use Salesforce's in-built validation, but display ALL errors at once, ideally aligned to the each field causing the error.

 

From our initial research, it appears that Salesforce will stop all processing the moment any validation fails, reporting back only that one failure.

 

Many thanks.

Message Edited by SidM on 01-26-2010 08:55 AM
Mike LeachMike Leach

Client-side Javascript is the most reliable and flexible approach to server-side form validation.

 

The declarative validation capabilities are primarily for rapid development in line of business apps.