Fields are not shown base on the conditions defined