-
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
Integrate Xero With Salesforce
Businesses seamlessly integrate various software platforms that streamline operations, improve efficiency, and enhance the customer experience. One powerful combination of integrating Salesforce, a leading customer…
7 Tips to Boost Productivity with Salesforce Insurance Solutions
Salesforce for insurance companies is a powerful tool for managing your business. However, it's not always easy to use or understand the implications of using…
URL Hacking in Salesforce - Episode 2
HEY!!! Welcome back, previously in URL Hacking Episode 1, We saw what URL hacking is all about and how to get the field id’s for…
Popular Salesforce Videos
Salesforce Einstein Top FAQs'
We hear a lot of questions from people regarding Salesforce Einstein which is why we've answered them below. So that you have complete and top…
How to Prepare for Salesforce Admin Certification | Salesforce Training
This "How to prepare for Salesforce Admin Certification" video by Edureka will firstly help you understand who is a salesforce admin. Then, it will talk…
How to Use a Phone in Salesforce with Dialer for Essentials | Salesforce Essentials
Unify your team with a single company phone number. Lightning Dialer for Essentials lets you and your team close deals and take support calls right…