Uneditable data is not saved in the spreadsheet.

When creating a new item, there are some items that are automatically filled with values using REF_ROWS. I would like to make that item uneditable so that the user cannot touch it, but then the spreadsheet will not save data for that item only.
How can I make it uneditable when entering the data, but still save it to the spreadsheet?