hide field enddate if noenddate is set to true