How can I get the conditional fields to work properly?