-
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
How to Update the Values of a Custom Picklist Field using Metadata API?
The user can easily add, delete, or update the values of a custom picklist field manually. But there are times when you have to update and…
Top 5 Benefits of Salesforce Commerce Cloud
As the number of online shoppers continues to increase rapidly, businesses must adapt to this growing market. To attract customers and expand their online presence,…
How 2 (Friends) Salesforce Developers Built a Million Dollar Company?
The founders of AnavClouds Software are both Salesforce professionals, doing well in their own spheres of work. They happened to meet through a common friend…
Popular Salesforce Videos
How Many Salesforce Certifications Should You Get?
Everyone is getting Salesforce certified. So how many do you actually need to stand out? In this video, I analyze how many certs you should…
How to Switch your Career from Being an HR or a Recruiter to a Salesforce Developer/QA or a BA
In this video, Shrey has answered one of the most frequently asked questions about how someone who is working in HR or as a Recruiter…
Salesforce Stock CRM Huge News!
Why is Salesforce Stock CRM Stock going UP? Is Salesforce stock a buy? Should I buy CRM Stock? Is Salesforce stock a good investment? In…