Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Force.com Application Development

You're reading from   Learning Force.com Application Development Use the Force.com platform to design and develop real-world, cutting-edge cloud applications

Arrow left icon
Product type Paperback
Published in Apr 2015
Publisher Packt
ISBN-13 9781782172796
Length 406 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Chamil Madusanka Chamil Madusanka
Author Profile Icon Chamil Madusanka
Chamil Madusanka
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

Preface 1. Getting Started with Force.com FREE CHAPTER 2. Building the Data Model 3. Building the User Interface 4. Designing Apps for Multiple Users and Protecting Data 5. Implementing Business Processes 6. Data Management on the Force.com Platform 7. Custom Coding with Apex 8. Building Custom Pages with Visualforce 9. Analytics as a Service with the Force.com Platform 10. E-mail Services with the Force.com Platform 11. Building Public Websites with Force.com Sites 12. Deploying the Force.com Application A. Force.com Tools Index

Preserving data quality with validation rules


Validations are common in any application. Suppose, the user has to enter a date value in a particular field. However, this date must be a future date. You have to validate the particular field. In the Force.com platform, the validation rules are there to fulfill your validation requirement.

The validation rules verify the user input data in a record against the criteria you define in the formula or the expression of the validation rule. A validation rule is associated with an object field. When a record is created or updated, the particular validation rules are executed. Define a validation rule by specifying an error condition and a corresponding error message. The error condition is written as a Boolean formula expression that returns true or false. When the formula expression returns true, the save will be aborted and the error message will be displayed. The user can correct the error and try again.

Note

The Force.com platform has some default...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime