-
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
Cisco SD-WAN Deployment Guide: Complete Checklist, Steps, and Best Practices
Cisco SD-WAN has become a preferred solution for organizations looking to improve network performance, simplify management, and enhance connectivity across multiple locations. As businesses adopt…
Email Services in Salesforce - Learn All About It
Salesforce Email Service is an automated process that processes inbound email using Apex classes. We need to create a separate email address for Salesforce to…
Salesforce Releases New Google and LinkedIn Data Cloud Integration
Salesforce has just released new Data Cloud integrations for Google and LinkedIn. Salesforce users can utilize these integrations to merge first-party data from Salesforce's #1…
Popular Salesforce Videos
Export Data from Salesforce using Data Loader - Step by Step Process
In this video learn how to Export Data from Salesforce to CSV using Data Loader. You can install Data Loader on Windows or Mac. And…
Is Salesforce A Good Career Path?
Join this useful group for Salesforce job & career info: https://tinyurl.com/TelegramIntelogik Contact us for any Salesforce career guidance. Watch this video and learn. do let…
Salesforce Building Blocks with Accenture and OwnBackup
Join experts from Accenture, OwnBackup and Copado for a panel on the future of low-code SaaS. Get key building blocks that fuel Salesforce success and…