-
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
To Do Checklist Before Code Commit In Production
TO DO CHECKLIST BEFORE CODE COMMIT IN PRODUCTION Proper commenting in code (Test Class, Apex Class, Trigger, Vf page), if you modified or create new…
Value of Salesforce in Small and Medium Business
Speed is the quintessence of the business world. That is valid for almost every part of our business, yet it's particularly valid for innovation and…
What is Salesforce CPQ - Why Does Every Business Need it?
Introduction Business statistics prove SDR spends time on creating proposals rather than closing deals. It is apparent that the sales management process becomes insignificant when…
Popular Salesforce Videos
Salesforce Partner Program 2020: Everything You Need to Know!
Embarking on this new program year, PY21, Salesforce will be implementing some enhancements to its Partner program to ensure the central focus on customer success…
Process Builder or Apex Triggers - Choosing Between Salesforce Automation Tools
The Salesforce Platform offers several means to operate in the background: Process Builder, Triggers, Flow, Workflows, and more. With so many robust options, it can…
What is Lookup Relationship in Salesforce?
In this video, Shrey is not only teaching but also demonstrating to you "What is Lookup Relationship in Salesforce?". You will be learning: 1. How…