-
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
A Brief Guide For Salesforce Developers To Understand Customer Data Platforms (CDPs)
Have you realized data’s powerful aspects, or are you in the process? Data is the new king here, so those who own it can multiply…
Communicate Between Components Using Events in Lightning Web Components | Salesforce Developer Guide
Introduction Standard DOM events are dispatched by Lightning web components. Custom events may also be generated and dispatched by components. To communicate the components holding…
SuiteWorld 2024: Everything You Need to Know
Table of Contents for "SuiteWorld 2024: Everything You Need to Know" Introduction What Is NetSuite SuiteWorld? Where Will SuiteWorld 2024 Be Held? How Much Is…
Popular Salesforce Videos
Data Migration - Salesforce Admin Tutorial
In this video, Zorial Salesforce Tech gives a quick k overview of how to migrate data using Salesforce. He goes over some key points to…
Why flow with Salesforce Flow?
Earlier when you required a custom feature in your Salesforce installation to support your business process, the only available options were to create a brand…
Create Custom App in Salesforce | Salesforce Training
Following Pointers are included in this video: 00:00:00 Agenda 00:00:36 What is Cloud Computing? 00:03:12 What is Salesforce? 00:05:21 Benefits of Cloud computing & Salesforce…