Why data is not recorded if the field is hidden?