Description
Which Umbraco Forms version are you using? (Please write the exact version, example: 13.4.0)
13.4.0
Which Umbraco version are you using? (Please write the exact version, example: 13.5.2)
13.6.0
Issue summary
Talked with Umbraco Support and Umbraco Developers about this issue, check specifics
When updating a value programmatically on an old entry in Umbraco Forms, from before a field on the form was changed (e.g. a field on the form has been deleted or changed to a new datatype), all values on the entry are dropped/deleted.
This can potentially result in a lot of customer data being lost.
Specifics
Had a meeting with Davis Hedgepeth ([email protected]) about the findings.
Davis found out that after you update the record field on an old form from before the forms fields were updated, the entry will suddenly have a lot less record fields on it.
Davis also found out that this issue only happens when the forms fields have been changed/updated or deleted after the entry has been added.
Steps to reproduce
- Create a form
- Create an entry
- Remove a field on the form
- Programmatically update a field on the entry
- Edit the same entry, change the value of a field on the entry and save in the Umbraco Forms backoffice
- Refresh the entry page
Expected result / actual result
I expect the values to stay as when you update an entry in backoffice.
The actual result is that all fields are empty