Forums

form will not save to db when used in article

haujo01 17 Dec, 2012
Hi,
I am using jom 1.5 chronoformsV4 and pluginV4. Any form that I have that saves to the db will not work in I put in an article.

Here is the debug from a working test.

Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => my_cal
[event] => submit
[Itemid] =>
[name] => 1234
[input_submit_2] => Submit
[716d5e8d8901eb24b55af9d0deebf25f] => 1
[chronoform_data] => Array
(
[cf_uid] => 49e099730ac40deafff20f3ad896e6cf
[cf_created] => 2012-12-17 04:12:10
[cf_created_by] => 0
[cf_ipaddress] => 108.6.59.128
[cf_user_id] => 0
[option] => com_chronoforms
[chronoform] => my_cal
[event] => submit
[Itemid] =>
[name] => 1234
[input_submit_2] => Submit
[716d5e8d8901eb24b55af9d0deebf25f] => 1
[id] => 2
)

[chronoform_data_id] => 2
)
Validation Errors:
Array
(
)

Here is the debug from a failed test in article.

Array
(
[option] => com_content
[view] => article
[id] => 49
[Itemid] => 189
[chronoform] => my_cal
[event] => submit
[name] => 1234
[input_submit_2] => Submit
[716d5e8d8901eb24b55af9d0deebf25f] => 1
[chronoform_data] => Array
(
[cf_modified] => 2012-12-17 04:14:33
[cf_modified_by] => 0
[option] => com_content
[view] => article
[id] => 49
[Itemid] => 189
[chronoform] => my_cal
[event] => submit
[name] => 1234
[input_submit_2] => Submit
[716d5e8d8901eb24b55af9d0deebf25f] => 1
)

[chronoform_data_id] => 49
)
Validation Errors:
Array
(
)

The cache is off also I saw the other post.
If you have any ideas please help.
john
Max_admin 17 Dec, 2012
Hello,

There is an "id" in the failed test, are you sure that its not saved ? do you have a record with id=49 ? if yes then its being updated since the id is provided in the data array.

Does sending an email work fine in the article ?

regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
haujo01 17 Dec, 2012
Mark,
Good eye! I did not have a record 49 but it put me on track. The article id is 49. There is an autoinc id in the db table. So the form was passing that id and since there was no 49 could not update it. So I added a hidden field id then used custom code to set it to "" and now it works. I did not know it would take the session vars without adding a session to data action. Thanks for your help.
This topic is locked and no more replies can be posted.