Hello,
I am trying to test Handle arrays action and understand how the system works.
It doesn't work as I imagined. There is something wrong in my actions.
Here is my use case:
In Design tab:
1- creation of multifield of 2 fields.
Field name= text[0], Filed ID=text0.
Field name= text[1], Filed ID=text1.
2- creation of Submit button
MySQL table:
1- creation of table from Chronoform form manager page.
2- modify the fields proposed by form manager: the 2 lines of text[0], and text[1] ---> 1 line with text (with the same type VARCHAR(255) as text[0], and text[1])
In Setup tab:
1. activate HTML form in On Load section
2. add Handle arrays with no specific value. I let it as it is.
3. add DB Save action with model ID enable (with the Model ID name "data").
4. add Debugger before DB Save, and after DB Save.
Execution of this use case, Enter s1 and s2 in the 2 fields, and submit the form. Here are the results:
Debugger Before DB Save:
Debugger after DB Save:
The colum text in MySql table is empty as the debugger showed. Nothing is insert into table. Could someone give me a help for this and explain me what are wrong? I am interested by the documentation on Chronoform V5, if exist.
Thanks
Bertrand
I am trying to test Handle arrays action and understand how the system works.
It doesn't work as I imagined. There is something wrong in my actions.
Here is my use case:
In Design tab:
1- creation of multifield of 2 fields.
Field name= text[0], Filed ID=text0.
Field name= text[1], Filed ID=text1.
2- creation of Submit button
MySQL table:
1- creation of table from Chronoform form manager page.
2- modify the fields proposed by form manager: the 2 lines of text[0], and text[1] ---> 1 line with text (with the same type VARCHAR(255) as text[0], and text[1])
In Setup tab:
1. activate HTML form in On Load section
2. add Handle arrays with no specific value. I let it as it is.
3. add DB Save action with model ID enable (with the Model ID name "data").
4. add Debugger before DB Save, and after DB Save.
Execution of this use case, Enter s1 and s2 in the 2 fields, and submit the form. Here are the results:
Debugger Before DB Save:
Data Array
Array
(
[chronoform] => Array
[event] => submit
[text] => Array
(
[0] => s1
[1] => s2
)
[button2] => Submit
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
Debugger after DB Save:
Data Array
Array
(
[chronoform] => Array
[event] => submit
[text] => s1,s2
[button2] => Submit
[data] => Array
(
[id] => 1
)
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
[2] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => INSERT INTO `kxeq8_chronoengine_chronoforms_datatable_Array` (`user_id`, `uniq_id`, `created`) values ('87', '1c6196c41cd1973c2649bd215bb43f8d182a486e', '2015-11-10 07:22:19');
)
)
)
)
The colum text in MySql table is empty as the debugger showed. Nothing is insert into table. Could someone give me a help for this and explain me what are wrong? I am interested by the documentation on Chronoform V5, if exist.
Thanks
Bertrand