switching period field from Date picker to custom TextField