How do I use multiple fields to conditionally populate another field