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
Umair Mohammad 10Umair Mohammad 10 

Field Dependency and required fields

Hello Good People,

I have a field dependency inquiry.

ASK:  When a user selects field type (Refund) only, we want to make the the field types (Refund Amount) & (Store) required---> image is included

 

User-added image 

Umair Mohammad 10Umair Mohammad 10

I added 3 images for those 3 fields to better help.

User-added image

User-added image

User-added image

AnkaiahAnkaiah (Salesforce Developers) 
Hi Umair,

In your case field dependcy is not possible.

You need to do this by using validation rule.

try with below formula. Replace the field API names as per your org.
AND(ISPICKVAL(Type,"Refund"), OR(ISBLANK(Refund_Amount__c),ISBLANK(store__c)))

If this helps, Please mark it as best answer.

Thanks!!