-
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
What worries Salesforce Users most when using their Orgs in 2024?
Salesforce is a robust platform for digitizing business operations and automating processes in an organization. However, issues sometimes arise when running the platform. I asked…
Grant Management System in Salesforce
Grant Management in Salesforce is a component of the non-profit-making Success Pack (NPSP), within which Salesforce grants 10 free licenses to any or all eligible…
Automation of JSON2APEX - My journey to writing my own automated tooling for this!
Lyrics Each and every time developing an integration, I wanted to automate the most tedious and routine part of it - creating wrappers for integration…
Popular Salesforce Videos
Salesforce Surveys | Salesforce Tutorial Video
In this short video, we will demonstrate how to enable surveys to use for employees. You can also enable surveys for customers or external participants…
Salesforce Winter 18 Release for Busy Admins
Contents: Lightning Report Builder Dashboard Report Filter Lightning Hover Components Conditional Page Components Setup Search in Lightning Lead Conversion Updates User Interface Settings