-
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
Salesforce and Google Expand their Partnership
Google Workspace and Salesforce announced a partnership extension. Companies are going to enhance their AI capabilities. Salesforce and Google announced their teaming up at the…
Marketing Cloud Overview in 2024
This article explores Salesforce Marketing Cloud, the exclusive Einstein-powered marketing platform built on the world's most trusted CRM. Designed to foster lasting customer relationships, it…
All You Need to Know About Apex Test Class in Salesforce
You may create and run tests for your apex classes and triggers on the lightning platform using the apex testing framework. Apex unit tests help…
Popular Salesforce Videos
We are the Salesforce Development Company you are looking for!
From startups to enterprises, we help organizations make more out of their Salesforce CRM. We are end-to-end Salesforce development experts. And yes, we will redefine…
How to Translate/Override Custom Labels in Salesforce
In this video, you can see how to translate or override custom labels that come with installed managed packages in Salesforce.
Access & Permissions in Salesforce | Profiles, Permission Sets, Sharing Settings
User permissions and access settings specify what users can do within an organization: Permissions determine a user's ability to edit an object record, view the…