Validation rules help assure entered data meets basic requirements for consistent and clean data.

learn more… | top users | synonyms

1
vote
1answer
19 views

Validation Rule not displaying under the field definition

When I check the validation rules related to an opportunity, I see that a field is referenced in the validation rule, when I go to the actual field the validation rule section displays nothing. Is ...
3
votes
3answers
40 views

Make visualforce fields required without setting them from the object page

I have an <apex:form> which has search action and upsert action, the thing is that I want the fields inside this form to be required just when I click on insert button. I tried to make these ...
2
votes
3answers
75 views

Validation rule for data dependency

I'm new to coding in Salesforce and I'm trying to code the following logic: If a certain picklist value is chosen, another certain field cannot be left blank. I wrote the following but I'm not sure ...
1
vote
3answers
40 views

Validation rule on 2 picklist fields

I'm trying to create a validation rule formula in Salesforce, that uses two picklist fields. If the first has any value selected, the Second picklist can NOT have any value selected. So basically if ...
1
vote
2answers
40 views

How Salesforce Performance varies when Multiple Validation Rules Triggers for Bulk Records

We are Implementing Data Validation Process for our Organization for which we are thinking to implement following techniques: Apply validation rules for every object in order to maintain Data ...
1
vote
2answers
25 views

Why doesn't the SOAP update call return more than one validation error?

I am sending an update request (SOAP) using the Partner API. The update request is setting two fields to values that should trigger three different validation errors. When I set these values in the ...
0
votes
2answers
31 views

Validation using two Picklist Fields in 2 objects

I'm trying to create a validation rule formula in Salesforce, that uses two picklist fields which have the same values : p1, p2, p3. One of the picklists is on the account object and the other one on ...
0
votes
1answer
43 views

Cross object dependant picklist validation [duplicate]

Hi i am having a two picklist in salesforce one is on account object and one is on contact object. If i am having a1,a2,a3 as picklist values in both. if i select a value in contact is a1 and in ...
1
vote
1answer
26 views

Why would an UPSERT to QuoteLineItem fire validation rule configured for Opp Products?

I am upserting a group of items into QuoteLineItem, but for some reason, an Opportunity Product Validation Rule is failing (Opp not Quote). The custom field being validated exists in both objects ...
0
votes
1answer
109 views

Validation Rule to make text field mandatory based on picklist value selected

Validation Rule to make text field mandatory based on picklist value selected. eg:- If i had a picklist if i select a "High" then a text box must become required and print a message.
1
vote
2answers
31 views

Validation rule to throw an error “You cannot modify after business hours”

I have a field and if the user tries to edit after 17:00 hours, error should be displayed that "You cannot modify after business hours" Can any one help me how to write the validation rule for this. ...
0
votes
1answer
42 views

Validation Rule Causing Deployment Issue

I'm trying to deploy a few items to production. I tested all my classes/triggers and they are all at 90% or higher. Unfortunately, there is a class a consultant had written before I was here that is ...
1
vote
2answers
29 views

master should be made non editable when there is any child associated to it

i have a situation where I need to throw an error when any use tries to edit the master record. It has one or more child records associated with it. i came up with something, like i had a roll-up ...
1
vote
1answer
70 views

Validation rule on Account Object

I have a validation rule on the Account Object as below: AND( NOT ISBLANK( Name), ISPICKVAL (Account_Level__c, "Company" ), ISBLANK( Address__c ), NOT $User.Status__c ) The above rule working ...
2
votes
1answer
38 views

different behaviour when adding opportunityline through visual flow?

To give some context, I had the requirement that I needed to guide the users through a couple of screens when closing an opportunity. So logically, I started implementing this requirement using ...
1
vote
1answer
30 views

Track Why/Why Not a workflow triggered

I have a formula based workflow in place that will automatically check several custom fields and then change the stage. I'm wondering if there is a way to see why a particular workflow failed to ...
1
vote
1answer
73 views

Validation rule on a text field based on Role

There is a sub role called as "Member_PA" under system Administrator role. and there are two roles Member and PA. The requirement is if member enters a case validation rule should not fire but if a ...
1
vote
5answers
135 views

Disable Javascript based Field Validation by Salesforce

i am facing a JavaScript based field validation problems in Salesforce. First let's give you my code snippet. Visualforce: <apex:inputField value="{!dealObject.Name}" required="true" /> But ...
0
votes
0answers
50 views

Validate a field

<apex:pageBlockSectionItem id="s" > <apex:outputLabel value="Select value :"> </apex:outputLabel> <apex:actionRegion > <div ...
1
vote
2answers
104 views

Error: j_id0:j_id1:j_id28:j_id30: Validation Error: Value is required

I am getting above ugly error.How to clean the error without custom error handing in controller. <apex:page standardController="Account" extensions="EventController"> <apex:form > ...
2
votes
2answers
44 views

opportunities : how to check if the amount was filled

I have seen this multiple times that Sales users only care to fill in the monetary value of an opportunity once the opportunity becomes more concrete. We can tell them that it's a better practice to ...
1
vote
2answers
42 views

Schedule (OpportunityLineItemSchedule) Validation?

Anyone know of a magic way to do "Validation" on Schedule items? In our example, we want to stop most profiles from touching a Schedule item that has a Schedule Date of "before today" (it's more ...
3
votes
1answer
34 views

Searching “everything” in Salesforce

I don't see a similar Question here or via Google searches. Is there a way (I would presume it would be outside the SF GUI) to search "everything" in SF? That would translate into all object field ...
1
vote
3answers
106 views

Apex:ActionSupport Action isn't Invoked when VF Page Contains Validation Error

I have a VF page, on which there is a output field binds to an action support function like below: <apex:inputField value="{!job.Account__c}" id="AccountInput" > <apex:actionSupport ...
0
votes
2answers
45 views

The record should be created only once for an object

For a product only one once an incentive can be created according to this business process how can i restrict it form creating more than one record.
0
votes
2answers
67 views

required field only for some users

I have a required field that only needs to be required for some users. (not all) At this time, I have written a validation rule that will only do the validation for the users that I want. The problem ...
1
vote
1answer
25 views

unable to validate a field to show error message

I am unable to validate a field where if user enters a value in a text fields it must show error message data is not accepted
10
votes
4answers
358 views

FIELD_CUSTOM_VALIDATION_EXCEPTION during Unit Test

I have a validation rule, such that setting a Case escalation status to "approved" can only be done via particular users and/or emails via the automated email parser. I have a Unit Test that accounts ...
2
votes
1answer
265 views

jQuery Validation and Action function not working on Chrome

I am using submit handler in jQuery to validate the form before it passed to the Salesforce action function for submission, which in Firefox works perfectly. Yet in Chrome, the submission gets to the ...
1
vote
1answer
317 views

apex select list with required = true not displaying validation error message

Validation error message is not displaying when select list is none or blank.Also I need to hide the buttons Submit,MakeAnonymous and Cancel button when clicked on either Submit and MakeAnonymous ...
0
votes
1answer
47 views

How do you incorporate product family into a validation rule for closed/won opportunities

I am trying to create a validation rule that will require a date field (renewal date) be populated before an Opportunity can be closed as won if a product from a particular family (Software) is ...
0
votes
1answer
42 views

How to solve these validations? [closed]

Requirement: I have 3 fields as Test1,Test2 & Test3. Test 2 & Test3 are Lookup Fields. If i select Test2 then Test 3 field need to be required.Test1 is a check box.Here is a validation ...
2
votes
3answers
713 views

Custom Validation Message on Visualforce Page

we designed a vf page called competitor.Competitor has validation rule.This is running fine in the back end.But the validation error message has not been displayed on the page. Here the controller : ...
0
votes
1answer
71 views

How to validate the mandatory question in VF page?

I have a requirement to display the set of questions in VF Page. The set of questions will be available in Custom object. I need to display the question field and answer field for the user to answer. ...
0
votes
1answer
189 views

Restrict text field to allow only letters or a space to be entered

I have created a custom text field (Text01__c). I need a way of allowing ONLY the characters [a-z][A-Z] and space. Can someone help me with either a formula or workflow rule to prevent this text ...
0
votes
1answer
45 views

How to limit edits of an oppty to the current fiscal quarter only?

I am trying to add some editing limits of opptys in 2 ways (this is on top of other validations in the oppty today): Sales team can edit the oppty while they are in the same fiscal quarter Region ...
4
votes
1answer
639 views

Salesforce: Validation using two Picklist Fields

I'm trying to create a validation rule formula in Salesforce, that uses two picklist fields. If the first is picked as New Account, and the Second is Not Selected, then a validation rule appears: ...
3
votes
2answers
303 views

Problem with showing validation error using trigger

I wrote a trigger to throw validation error on ILR object record. This is a custom object. The purpose of this trigger is : when any ilr record is cloned from the parent using custom cloning ...
8
votes
1answer
228 views

Custom Setting is null in test method even though I set a value

I want to update the Opportunity stage depending on a status field on the account. I have a validation rule that makes a date field on the opportunity mandatory for some stages. This validation rule ...
1
vote
0answers
23 views

Lead convert VR doesn't fire when account already exist

Hoping you all can help me out with this! I have a Validation Rule that has a few required fields on the lead when converting to an opportunity. However, it becomes unnecessary when converting a lead ...
2
votes
1answer
151 views

Delete override from related list action

I'm trying to avoid record deletion based on record and/or parent status. I've tried two options: 1. Trigger validation on before delete with a record and add Error message if it can't be deleted. ...
5
votes
1answer
56 views

Apex tests that handle different workflows?

I provide a standardized but unmanaged package to clients who have different workflow needs. The workflows sometimes interfere when I deploy new standard code. Does it make sense to turn them off? ...
1
vote
2answers
266 views

How to check for null values in visual workflow validation?

I've created a visual workflow that is used to create a contact. A part of creating a contact means that there MUST be a phone-number OR an e-mail address entered for the contact. This means that I ...
2
votes
1answer
185 views

ReCaptcha in web-to-lead form using PHP recaptcha.lib in Site.com salesforce

I have created a web-to-lead form and I am using the generated HTML in my site.com. I am using reCaptcha in my form. HTML Web-to-Lead form <form action="/recaptcha_verify.php" method="post" ...
5
votes
1answer
180 views

Adding validation rule to Close Case standard button

I have a requirement where a user should not be able to close a case if the case owner is a queue. For that I have added a validation rule which goes like this BEGINS(OwnerId, ...
3
votes
1answer
380 views

Validation error is not showing in visualforce page

i wrote two validation rules for the same visualforce page.i have four fields in my page Max_Quantity__c, Asked_Quantity_Number__c, BatchQuantity_Number_c,unitprice_c first validation rule on unit ...
2
votes
1answer
159 views

How to write the validation rule with following criteria

AND( ($Profile.Name ="France User"), OR( (OR(Max_Quantity__c < Asked_Quantity_Number__c , 'Max_Quantity__c'=='Asked_Quantity_Number__c')), OR(Max_Quantity__c < BatchQuantity_Number__c , ...
8
votes
2answers
209 views

Format a Validation Rule Error Message

I would like to include line breaks within a Validation Rule Error Message without the use of Visual Force. Is this possible?
3
votes
1answer
131 views

Validation Rule regarding sharing the record

In our organization we are using quote as visualforce page. So i am using validation rule in this criteria: if($Profile.Id='00e90000000erfV',(AND( (ischanged( Subject__c)), OwnerId <> $User.Id ...
1
vote
1answer
55 views

Validation rule

Permission on quotes: all users should be able to see quotes of everybody USA users: they should be able to modify quotes of any USA user (but not of other users) Other users: they should be able to ...