Thanks for a great product and support.
Here is the sequence leading to my issue:
1) Downloaded Chronoform and created a form. Added form via Joomla Module Manager. ( using Enox-TG template)
2) Tested - Saves to DB fine via "Test Form" link and via "Module".
3) Created another form and was working only via "Test Form" link.
4) Now added the 2nd form to an article - it does not save. Bizarre, it one time overwrote the id=15.
5) Went back to my first form same behavior. Does work via TestFom link and not via "Article"
What am i doing wrong? Does opening the table via myPhpAdmin cause any issue?
Which db userid does chronoform use and how to change that if required?
How to log what DBSave object encounters?
Advance thanks for your help.
Here is the sequence leading to my issue:
1) Downloaded Chronoform and created a form. Added form via Joomla Module Manager. ( using Enox-TG template)
2) Tested - Saves to DB fine via "Test Form" link and via "Module".
3) Created another form and was working only via "Test Form" link.
4) Now added the 2nd form to an article - it does not save. Bizarre, it one time overwrote the id=15.
5) Went back to my first form same behavior. Does work via TestFom link and not via "Article"
What am i doing wrong? Does opening the table via myPhpAdmin cause any issue?
Which db userid does chronoform use and how to change that if required?
How to log what DBSave object encounters?
Advance thanks for your help.
There are 2 issues:
(1) Cannot save to DB via Article
(2) If you were testing via the :Test Form" link say 15 times. AND if the article id = 15 where your chronoform is, then it will corrupt/overwrite the 15th record and will not move from here.
I hit a wall here and looks like a serious bug if it is.Unable to save to DB via article and data corruption. Having purchased all the licenses and more importantly a lot of time, i would like to think it is some silly mistake i am doing. Please let me know.
Per another suggestion, tried the (a) changed the DB column from "id" to "cf_id" - nothing happens
For (b) how do i reset the id here?
Array
(
[chronoform] => PoojaRegistration
[event] => submit
[Itemid] => 139
[option] => com_content
[view] => article
[id] => 18
[Pooja] => Lalitha Saharanama
[PoojaDate] => June 12, 2015 Friday
[FirstName] => FN
[LastName] => LN
[Email] => lkjlkjlkj@gmail.com
[Phone] => 123333333
[Register] => Click Here to Register
[PoojaRegistration] =>
)
(1) Cannot save to DB via Article
(2) If you were testing via the :Test Form" link say 15 times. AND if the article id = 15 where your chronoform is, then it will corrupt/overwrite the 15th record and will not move from here.
I hit a wall here and looks like a serious bug if it is.Unable to save to DB via article and data corruption. Having purchased all the licenses and more importantly a lot of time, i would like to think it is some silly mistake i am doing. Please let me know.
Per another suggestion, tried the (a) changed the DB column from "id" to "cf_id" - nothing happens
For (b) how do i reset the id here?
Array
(
[chronoform] => PoojaRegistration
[event] => submit
[Itemid] => 139
[option] => com_content
[view] => article
[id] => 18
[Pooja] => Lalitha Saharanama
[PoojaDate] => June 12, 2015 Friday
[FirstName] => FN
[LastName] => LN
[Email] => lkjlkjlkj@gmail.com
[Phone] => 123333333
[Register] => Click Here to Register
[PoojaRegistration] =>
)
Ok, blanked out the array id value, still does not save
$form->data[id]=NULL;
$form->data[id]=NULL;
Problem resolved. Answering my own question.
Solution:
Drag a Custom Code just before DBSave and remove label. Copy the below in Code section.
<?php $form->data[id]=NULL; ?>
Save and close and then save form. It works now.
Somehow it does not like having both options. GreyHead has an OR in the options.
so when i changed id to cf_id AND null-ed the id it still had issues.
Left the db column name as it is to "id" and added the above custom code it started working.
Thanks
Solution:
Drag a Custom Code just before DBSave and remove label. Copy the below in Code section.
<?php $form->data[id]=NULL; ?>
Save and close and then save form. It works now.
Somehow it does not like having both options. GreyHead has an OR in the options.
so when i changed id to cf_id AND null-ed the id it still had issues.
Left the db column name as it is to "id" and added the above custom code it started working.
Thanks
This topic is locked and no more replies can be posted.