-
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
Update: Our Salesforce WordPress Portal Has a Page Builder Feature Now!
We are pleased to announce that we have added a brand new feature to our Salesforce WordPress customer portal, drag and drop page builder with…
Bric API - Business card scanner API
Pass card images and get accurate results in JSON. Most CRM / ERP software requires inputting customer/vendor details into the software and a major source…
Salesforce Consulting Services for Enterprise Integration Challenges
Enterprise technology landscapes grow more complex every year. Large organizations operate hundreds of disparate applications across cloud and on-premise environments. Recent data shows that 82%…
Popular Salesforce Videos
How to Delete Multiple Contacts at Once | Salesforce Tutorial
Do you need to delete a bunch of records? Don't want to delete records one by one? This video shows you several ways to delete…
Salesforce Advanced Code Searcher | Productivity Hack
By using the advanced quick find you can get your code a few clicks shorter. Also, you can search any string your code. Using this…
Introduction to Salesforce CMS
Salesforce CMS is a hybrid content management system, where you can curate and share content, manage multiple language versions of your content, and control who creates…