Skip to main content
Have a custom object where I want a picklist selection to make two fields become mandatory/required.  One of the fields is another picklist (easy & working fine), but the other is a currency field.  I want the currency field to have a validation rule as well as a dependecy.  Validation Rule would be to NOT allow the record to save if the field is NULL or ZERO.  My formula is below, but the validation rule is not stopping the record from being saved with a zero or blank value. 

 

The dependency portion I know might be problematic, but thought I would ask.  In a perfect scenario I want the currency field (Total Opportunity) to stay grayed out like the picklist (Probability to Close) like you see below.  Not sure if that can be done since dependencies are usually built off of picklists.  Can someone please help?  Greatly appreciate it! 

 

Best, 

 

Mike

 

Validation Rule & Dependency on Currency Field   
15 个回答
  1. 2018年7月11日 02:47
    Hi Mike, that was not meant to be the complete Formula, that was merely a Test to help trouble shoot the issue.  

     

    So you result pretty much confirms that there is an issue with this part of the complete Formula 

    AND(

    TEXT( Meeting_Type__c ) = "Proposal Presentation",

    ...

    In your original past your Formula said 

    ISPICKVAL( Meeting_Type__c , "Proposal Presentation")...

    but in your most recent screenshot there is no Picklist Value 

    "Proposal Presentation" there is only "Presentaion Proposal" 

     

    So this Formula that I wrote based on your initial post is looking for a value that does not exist and will never be in the Meeting_Type__c field . 

     

     

    AND(

    TEXT( Meeting_Type__c ) = "Proposal Presentation",

    OR(

    ISBLANK(TEXT( Probability_to_Close__c)),

    ISBLANK(Total_Opportunity__c),

    Total_Opportunity__c = 0)

    )

    a Formula is like a Robot that does exactly what you program it to do, your Formula is basically asking to do the impossible:  Only allow a User to save a record if something that will never happen happens. 

     

     Try updating the Formula(like this) to look for a value that is actually in the Picklist and run another test 

     

     

    AND(

    TEXT( Meeting_Type__c ) = "Presentation Proposal",

    OR(

    ISBLANK(TEXT( Probability_to_Close__c)),

    ISBLANK(Total_Opportunity__c),

    Total_Opportunity__c = 0)

    )