-
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 Marketing Cloud Implementation Guide
Table of Contents Introduction to Salesforce Marketing Cloud (SFMC) Key Features of Salesforce Marketing Cloud Reasons to Adopt Marketing Cloud for Your Business Salesforce Marketing…
How Salesforce Developers Can Help Your Business?
Salesforce, in its name, is pretty telling at saying what it is best at. However, there is a huge bridge to cross between implementing Salesforce…
Reimagining User Experience with Salesforce to Drive a Better Customer Experience
The end user delivering the service must be the first objective in the pursuit of a better customer experience. This is especially true for any…
Popular Salesforce Videos
Is Salesforce A Good Career In 2022?
Wondering whether Salesforce is a good career or not? Still have some doubts about it. Watch this video and join this useful group for Salesforce…
Public Groups In Salesforce | Salesforce Development Tutorial
Public Groups In Salesforce. In this video, the following points will be covered - 1. Introduction Get a brief introduction about public groups. 2. Purpose…
Salesforce Pardot: 2020 Update
If you’re a current Salesforce user, you may be hearing a lot about Pardot these days. Perhaps you are using MailChimp, Campaign Monitor, or Constant…