-
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
Grant Account Login Access in Salesforce
Grant Account login access in Salesforce is a standard inbuilt salesforce feature. It might possible that sometimes you have queries or issues with salesforce itself or…
Salesforce For Email Marketing: Interview with Mar Tech expert
Marketing Cloud provides an expansive range of tools that can be used for different types of customer engagement processes. One of them is Email Studio.…
Salesforce Summer ’21 Release - Highlights You Need to Know About
It’s time for Salesforce’s Summer ’21 Release! Salesforce has once again built a bunch of new features and improvements to ensure we, the users and…
Popular Salesforce Videos
Top 5 Benefits of Salesforce Financial Service Cloud
Built on the Salesforce Customer Success Platform, Financial Services Cloud includes an enhanced set of features created specifically for client engagement and designed with the…
Customize Salesforce in a Flash with Lightning
This video shows you how to use Lightning App Builder to make page customizations without any code. This enables admins to tailor Lightning Experience for…
Salesforce Introduction | Salesforce Administrator Tutorial for Beginners
Salesforce Administrators work with stakeholders to define system requirements and customize the platform. To put it simply, they enable users to get the most out…