-
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

Career Planning in Salesforce (CRM) | What Makes Salesforce Career so Lucrative?
Salesforce is a customer relationship management (CRM) platform that provides a range of tools and technologies for sales, service, marketing, and collaboration. A career in…

Salesforce Development Vs. Traditional Development
The competitive nature of present living standards has always kept every individual in the race for success. The urge to grab the crown and be…

Overview of Aura Components in Salesforce | The Developer Guide
Aura The modular, reusable parts of an app are called aura components. From a single line of text to a whole app, they stand for…
Popular Salesforce Videos
Benefits of Implementing Salesforce Revenue Cloud
Healthy revenue growth is a vital indicator of a firm’s success. The key aspects that majorly affect an organization’s revenue growth are sales, operations, finance,…
How Much Time to Give to Salesforce Preparation?
Wondering how much time to give for Salesforce preparation? Watch this video it explains distinctly how much time you need to learn. If you have…
Salesforce Winter Release '22 Highlights
Watch this webinar video to learn about new and improved features and how you can take full advantage of the latest enhancements. Let us know…