When the form is created in the preview document state simple disable recursively the input fields by adding a disabled attribute in the input HTML elements of the form:
[ ] Checkbox
[ ] Text area
[ ] Input
[ ] .....
Function which passes a boolean, preview false or true.
When user presses edit button then enable the form elements
First simplest approach idea