Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Force.com Enterprise Architecture. - Second Edition

You're reading from  Force.com Enterprise Architecture. - Second Edition

Product type Book
Published in Mar 2017
Publisher Packt
ISBN-13 9781786463685
Pages 504 pages
Edition 2nd Edition
Languages

Table of Contents (23) Chapters

Force.com Enterprise Architecture - Second Edition
Credits
Foreword
About the Author
Acknowledgements
About the Reviewers
www.PacktPub.com
Customer Feedback
Preface
Building, Publishing, and Supporting Your Application Leveraging Platform Features Application Storage Apex Execution and Separation of Concerns Application Service Layer Application Domain Layer Application Selector Layer User Interface Lightning Providing Integration and Extensibility Asynchronous Processing and Big Data Volumes Unit Testing Source Control and Continuous Integration Index

Understanding the custom field features


Custom fields carry many more features than you might think; they are much more than simple field definitions you find on other platforms. Having a good understanding of a custom field is the key to reducing the amount of code you have to write and improving the user experience and reporting of your application's data.

Default field values

Adding default values to your fields improves the usability of your application and can reduce the number of fields needed on the screen, as users can remove fields with acceptable defaults from the layouts.

Default values defined on custom fields apply in the native user interfaces and Visualforce UIs (providing the apex:inputField component is used) and in some cases, through the APIs. You can define a default value based on a formula using either literal values and/or variables such as $User, $Organization, and $Setup.

Let's try this out. Create a Year text field on the Season object as per the following screenshot...

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 $15.99/month. Cancel anytime}