-
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

Displaying Field According to Its Datatype In Salesforce Lightning Component
For my recent Requirement, I had to show the LookUp field of inside a lightning component. I had to use two components, the parent and…

9 Reasons Why Salesforce Is The Best CRM In 2021
Well, owing to the bulky data back in the past, there was a need for cloud computing. Additionally, the list of customer concerns, supporting them…

Your Complete Guide to Salesforce Sales Cloud
Named the #1 CRM solution in the world, Sales Cloud is Salesforce’s most popular product. In this article, we’ll go through everything you need to…
Popular Salesforce Videos
Survival Kit for Beginner Salesforce Developers - 1
Are you a developer just starting out with Salesforce? Are you an admin looking to get into development? Join us to learn a few easy,…
How to Focus on Report Results in Salesforce Console | Salesforce
When you work with reports in a fast-paced Salesforce Console environment, every extra click or focus change can slow you down. Now a streamlined console…
Create Reports In Salesforce With Report Builder
Create reports in Salesforce with Report Builder. In this video, the following points will be covered - 1. Introduction Get a brief introduction about reports…