-
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
Introducing Junction Objects in Salesforce
A Junction is an object which is utilized to combine two master-detail relationships. In a layman’s dialect, when two relationships come together, they shape one…
Popular Salesforce Videos
Pardot vs Marketing Cloud: What's The Difference?
There are different functions of each Salesforce product according to the use cases. Many businesses get confused between Salesforce Pardot and Marketing cloud. Pardot is…
Salesforce CPQ Bundles - Why You Need Them and How to Create a Bundle
Salesforce CPQ stands for Configure, Price, and Quote. This tool simplifies the whole process of configuring product bundles, pricing them, and generating quotes for customers.…
Unfolding Code Builder | Salesforce Development Tutorial
Working with Salesforce Development has been a challenge especially when we are working with Lightning Web Component. As we have to install the VS code…