How do I apply the same condition to multiple fields with the same name?