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
Synthia B.Synthia B. 

Validation Rule and Visualforce Page

I have a VF (missing field report ) page that calculates the number of fields that are missing on a record type. How do I go about telling the VF page not to capture certain fields if the data is not required depending on (an)other field(s). 

For example: 
IF field ”Rx Copay After Deductible" = No then  field ”Copy Amount" must be blank. 
IF Yes, then selection required from picklist. 
For VF , if "Rx Copay After Deductible" = No then do not count "Copay Amount" as missing in the VF page.

Thanks in advance, 
Synthia 
RohRoh
Hello Synthia,
Can you please be little more clear?

Thanks,
Rohit Alladi