-
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
How to do a Successful Marketing Cloud Personalization Implementation?
To personalize and manage real-time interactions with your customers, Salesforce Marketing Cloud Personalization is a potent tool. But you need to plan and execute it…
APEX Rest Callout in Salesforce Integration
The Salesforce REST API allows you to integrate with Salesforce applications by using standard HTTP methods such as GET, POST, PUT, PATCH, DELETE, and HEAD.…
Take Survey/Feedback using Login Flows
Introduction Logins flows is one of the cool features in Salesforce of which lot of people are not aware about. What it does is, when…
Popular Salesforce Videos
How to Get a Job in Salesforce as a Fresher | Video Guide
Looking to start a career in Salesforce. Wondering how to get a job in Salesforce as a fresher. Check out this video it will guide…
Introduction to Salesforce CTA Exam
The average salary for a Technical Architect is $118,324 per year in the United States. Do you also want to become Technical Exam by cracking…
How to Add Custom Fields on Custom Object in Salesforce?
Watch this video to learn all about how to add custom fields on custom objects in Salesforce. If you have any doubts do let us…