Intergration with Knack and formstack

OK, on the basis that the var record_id = data.id; sends that record ID to formstack, I have deleted this out of the merge data area in the java script, when I test this the delivery completely fails in formstack, maybe I have the var record_id = data.id; in the wrong place??

Putting the update info to update the auto increment number was a mistake, to be honest I dont understand the logic behind the script, I just keeping on trying different things until it works!!

Im sorry I am just a bit thick with this sort of thing, if we could resolve this with a quick screen share, my company will compensate you for your time, I just want to get this sorted…

image