-
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
Successful Implementation Of Salesforce Communities
Salesforce Communities has changed the way businesses can handle connections with their customers, partners, and employees. The communities relevant to the industry can be created…
How to Set Up Web-to-Lead in Salesforce | The Complete Guide
What is Salesforce Web to Lead Salesforce web to lead is a tool for capturing and saving leads from your website. Salesforce has this capability…
Salesforce Data Migration: Best Practices and Tips
Migrating data to Salesforce is a crucial step for businesses transitioning from legacy systems or consolidating multiple data sources into one powerful CRM. Done right,…
Popular Salesforce Videos
Sculptor CPQ for Salesforce
Sculptor CPQ (Configure-Price-Quote) for Salesforce CRM-based businesses allows to reduce the length of the sales cycle and generate quotes 2X faster. Smart and intuitive product…
Login Flow In Salesforce
You can use a login flow to customize the login experience and integrate business processes with Salesforce authentication. Common use cases include collecting and updating…
What is Salesforce Hyperforce?
In this video, you will take a look at Salesforce Hyperforce, Salesforce's new re-architecting of the Salesforce platform. 00:00 Introduction 00:28 What is Salesforce Hyperforce?…