In this scenario, I would simply move selectOption to be inside your schema. You can then access the value from data in your .refine() or .superRefine() function.