Forums

Updating existing data entry and saving...

jhdesign 27 Sep, 2011
CF 3.2

I have a complex set of forms where user can save data, load and save again.

Initial save + load is fine - ID added to database

But when user loads and completes the form it does another save as (new ID generated) opposed to using the existing entry ID.

My load scripts puts the ID in the URL, I then load id as a hidden field into the first form (in set of many).

Jacob
GreyHead 28 Sep, 2011
Hi Jacob,

This problem is almost always because the primary key value of the existing record is not being included in the form data. Please turn debug on and check that the input name and value are correct.

Bob
apryl 05 Oct, 2011
I was having this same problem until I put a hidden field in my form for cf_id. Now it will save over the existing instead of creating a new record. Hope this helps.
This topic is locked and no more replies can be posted.