You need to sign in to do that
Don't have an account?
DumasRox
Help with picklist / checkbox validation rule ~ Easy
Hello,
I am trying to create a validation rule and I have not done very many. Please help.
IF Text_Field_A__c is not blank, THEN Picklist_Field_B__c OR Checkbox_Field_C__c can not be blank.
I am having trouble figuring out how to encompass the OR statement.
Is this even close?
And(
Text_Field_A__c ,
NOT ISNULL (ISPICKVAL(Picklist_Field_B__c, "") ,
OR NOT ISNULL (Checkbox_Field_C__c)
)
Thank You!
You STILL owe me a beer ;-p
All Answers
Here you go
PS. You owe me a beer (these terms are non-negotiable)
PPS. I like to drink these ->
Thanks for helping me on this Stevemo.
One Change:
The third value in my example should be a checkbox, not a picklist...?
AND(NOT(ISBLANK( Text_1__c )),
OR(
ISPICKVAL(Picklist_1__c, ""),
ISPICKVAL(Picklist_2__c, "")))You STILL owe me a beer ;-p
but since my first Answer was incorrect I'll give you a discount...
http://beeradvocate.com/beer/profile/220/1372
That will work. Thanks again for your help. Go ahead and order a beer and add it to my tab. :smileywink:
Well if you're going to be at Dreamforce '11 you're buying! ;-p
Hi, following on from the above post, I'm in a similar situation. Im new to salesforce and would appreciate any help! I've not done very many validation rules either.
If the 'Break Penalty inc. VAT' checkbox is checked and the 'Break Penalty Paid' picklist value is "Yes" an amount must be entered in the 'Break Penalty' field. Allowing the record to save. The formula should also work when the checkbox is checked and an amount is entered in the 'Break Penalty' field, the rule should fire telling the user to state whether the penalty has been paid in the 'Break Penalty Paid' picklist field. ('Yes' or 'No')
The current formula I have is:
AND( ISPICKVAL( Break_Penalty_Paid__c , 'Yes')|| Break_Penalty_inc_VAT__c = TRUE && ISBLANK( Break_Penalty__c ) )
I am trying to save the record but I'm getting an error message..below..
Any Help is Appreciated!! Thanks