Hi everybody,
I started learning CF5, I created a form with 4 fields and saved data in a db table. Everything worked great.
Now I'd like to retrieve the saved data into this new form, I created another form and in Designer I named 3 fields
with the same names of the previous form and added a submit button. In Setup, in OnLoad I added DBRead and HTML
Render Form. In On Submit I just inserted Debug.
In Basic from DBRead Edit I selected the db table and I wrote in Fields and Order the fields name that I'd like to be shown.
I saved and clicked Test form, I clicked on submit button but nothing was shown.
Here below the debug log
Thank you for your help.
Regards,
Bob
Debug log:
I started learning CF5, I created a form with 4 fields and saved data in a db table. Everything worked great.
Now I'd like to retrieve the saved data into this new form, I created another form and in Designer I named 3 fields
with the same names of the previous form and added a submit button. In Setup, in OnLoad I added DBRead and HTML
Render Form. In On Submit I just inserted Debug.
In Basic from DBRead Edit I selected the db table and I wrote in Fields and Order the fields name that I'd like to be shown.
I saved and clicked Test form, I clicked on submit button but nothing was shown.
Here below the debug log
Thank you for your help.
Regards,
Bob
Debug log:
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => retrieve_db
[event] => submit
[nome] =>
[cognome] =>
[docente] =>
[button4] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
Hello mrmix,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
My form data isn't saving to the database correctly
My CFv5 form data isn't saving to the database correctly
How do I save form data to a database table?
How to load record data from a database table into your form
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
My form data isn't saving to the database correctly
My CFv5 form data isn't saving to the database correctly
How do I save form data to a database table?
How to load record data from a database table into your form
P.S: I'm just an automated service😉
Hi Bob,
How are you identifying the record that you want to re-load?
Is the DB Read enabled? There is no output from it in the Debugger output you posted? You should be able to see the MySQL query.
Bob
How are you identifying the record that you want to re-load?
Is the DB Read enabled? There is no output from it in the Debugger output you posted? You should be able to see the MySQL query.
Bob
Hi GreyHead,
thank you for yr reply.
I wrote the db table name into the field 'Table Name' in DBRead.
Bob
thank you for yr reply.
I wrote the db table name into the field 'Table Name' in DBRead.
Bob
This topic is locked and no more replies can be posted.