-
present validation error under inputtext field in Salesforce
Hi, I have VF page with different types of fields and validation rules. When it comes to picklists etc I managed to get a nice 'validation' error message right under the effected field. However for input text fields it seems this is not supported.
In my custom controller I added the following line but the error is only shown inside the page message section (VF) and not like for other fields under the field itself
- ourcase.status.addError('you are not allowed to select this status);
- ourcase.Solution_Description__c.addError('Solution description is mandatory when closing a case');
The Solution_description__c field is a text field.
Log In to reply.
Popular Salesforce Blogs
Here's What To Expect From Salesforce's TrailheaDX 2021
TrailheaDX is the year's most exciting event for Trailblazers who want to learn new ways to build apps on Salesforce and expand the Salesforce Customer…
How to Import Multiple Objects Data in a Single SFDX Command | Salesforce Guide
1. Document Objective The purpose of this document is to import the data into multiple objects at the same time. 2. Integration Specifications Prerequisites: you…
9 Salesforce Development Best Practices
Learning to code might be dreadful for a few of us, but all of us would like to tweak something the way we wish. Salesforce…
Popular Salesforce Videos
Tips on Lightning Combo Box, Events in Lightning App Builder, and More
Watch this video by Salesforce Developers to get the tips on Lightning Combo Box, Events in Lightning App Builder, and more. Watch and learn, do…
What is a Salesforce PDO Partner?
Salesforce market is growing very fast these years. It is estimated that in 2021 the Salesforce ecosystem will be worth around 100 billion U.S. dollars.…
Salesforce User Experience UX Designer Certification
The Salesforce User Experience (UX) c is designed for individuals who have at least 6 months in UX design and 3–6 months’ experience utilizing UX…