Can't hide and show children's field based on conditions