Update Form with textarea - database contents overwritten

I have an update form produced by the BS4 form generator displayed in a model. I have set the textareas in the modal to use the MediumEditor.

The initial contents of the database are correctly displayed in the medium editor. If I make no changes to the text (e.g. update one of the other fields in the form) and then use the update server action then the contents of the database are overwritten with .

If I change the text in the medium editor and then do the update then the updated text is written back to the database correctly.

Can you tell me why this is happening please ?

have you checked that it is sending the information over in Dev Tools ??

Try adding conditions like this:

1 Like