I have a Chronoform that is called from a link in a Chronoconnection. In other words, if I click a hyperlink in my Chronoconnection the link opens a new page with the appropriate form. I have configured the form to look for a cf_id parameter that I pass via the URL. When the Chronoform opens it gets the cf_id parameter and its corresponding value from the URL. Everything works perfectly. The form is loaded with the appropriate record and is ready to be edited. I can edit a field (or fields) and press submit and everything seems fine. However, when I look at the corresponding table with PHPMyAdmin I see that the system has added a new record instead of updating the record I had thought I edited.
What makes this tricky is that my form does have a hidden cf_id field.
On load a debugger shows the cf_id field with the correct value.
On submit another debugger shows the value of cf_id is not assigned and a new value has been assigned to a cf_id field under the Model ID for this table.
Of course this explains the added record but I can't figure out why the cf_id value is being assigned this way. I have other forms that work fine using the same technique.
Any thoughts on this?
Thanks,
John
What makes this tricky is that my form does have a hidden cf_id field.
On load a debugger shows the cf_id field with the correct value.
[CURRSTAT_ID] => Array
(
[cf_id] => 35
[cf_uid] => 793622559c2d360b9c9558ddb580aa34
.
.
.
)
On submit another debugger shows the value of cf_id is not assigned and a new value has been assigned to a cf_id field under the Model ID for this table.
[cf_id] =>
[input_submit_10] => Submit
[a6d6dbf0a63dd342c40f97365d3351ee] => 1
[currstat_id_cf_id] => 69
Of course this explains the added record but I can't figure out why the cf_id value is being assigned this way. I have other forms that work fine using the same technique.
Any thoughts on this?
Thanks,
John