function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
cdweaver333cdweaver333 

Need Help with creating a conditional field

We have a field called PSS Inventory.  If a user selects "Box" or "Season Seats" in this picklist, I was hoping a conditional field would appear called "Number of Seats - Cdtl Question".
 
I created the field for Number of Seats.  I added the following validation rule for this:
AND  (   
 OR(
                ISPICKVAL(  PSS_Inventory_1__c , "Box" ) ,
                ISPICKVAL (  PSS_Inventory_1__c , "Season Seat" ) ) ,
ISNULL( Number_of_Seats_Cdtl_Question__c)  
 )
 
On the custom Opportunity Product page, the error message will appear (number has to be in this field) but the field will not appear when Box or Season Seat is chosen.
 
Is there something that I am not doing right?   I am leaving something out when creating this conditional field?  Is my validation rule wrong?  Thanks for your help!
 
arnt72arnt72
Hi,
you are expecting too much from validation rules.
All the validation rule does is display an error messages and keep the user from saving the record without a value in the "Number of Seats..." field. The field has to be in the layout all the time. It will not pop up automatically just because the validation rule evaluates to true.