Form update and insert

Hi

I’m using the form connector to load data into a form like so:

patientsForm.load("php/get_patient_data.php?id="+rowId);

The data loads fine and when i save it, it updates the db.
But now, let’s say i want to insert this data instead of updating it, creating a duplicate record. How can i achieve this? After looking through the forum I added resedtDataProcessor before the save() call:

patientsForm.resetDataProcessor("inserted"); patientsForm.save();

It doesn’t seem to work, can anyone help me?
Thanks

You are using correct commands.
If problem still occurs - please enable server side logs and provide their output for the problematic operation.

docs.dhtmlx.com/doku.php?id=dhtm … tor:errors

Thanks, that helped me spot the error