Try our conversational search powered by Generative AI!

Is it possible to update hidden form fields after they have been added to the database?


The code that I'm using gives an error -  {"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."}

I've tried -

var ddsSubmission = new DdsPermanentStorage();

* code here to get the correct field, remove it, and re-add it to the submission object with the updated values.

ddsSubmission.UpdateToStorage(formGuid, formsIden, submission);

as well as -


but in both cases I get the same error.

This error appears to be related to the Guid that's part of formsIden but I use formsIden to get the friendlynames and it works.

Mar 20, 2018 14:24

Hmm, I tried the following code but see no problem

        public override Guid SaveToStorage(FormIdentity formIden, Submission submission)
            var dds = new DdsPermanentStorage();
            var submissionId = dds.SaveToStorage(formIden, submission);
            submission.Data["__field_183"] = "test@test.test"; // __field_183 is the id of my hidden visitor profiling field
            dds.UpdateToStorage(submissionId, formIden, submission);
            return submissionId;
Mar 21, 2018 10:23

Thanks Phu. I changed my code to use var submissionId = ddsSubmission.SaveToStorage(formsIden, submission); but it still gives the error  {"Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)."}.

I'm wondering if there is a permission or property in the web.config related to this method that I haven't set.

Mar 21, 2018 15:00

I tried this with another Episerver site I'm working with and I'm getting the same error. Anyone else have this problem?

Edited, Mar 22, 2018 13:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.