textarea to array

How to fix a textarea field being saved as an array in a ChronoForms multipage form.

Overview

The issue occurs when a textarea field's data is incorrectly serialized into an array format during form submission.
Clear your browser session by logging out and then logging back into your site to reset the form data handling.

Answered
ChronoForms v6
we webcrea 14 Mar, 2019
Hi,
In multipage form,
I don't understand my textarea "comment" becomes an array when i want to save it.
Array
(
[chronoform] => temoignages
[event] => submit
[tvout] => view
[display-section1] => Array
(
[counter] => 0
)

[_counter] => 0
[display-section8] => Array
(
[counter] => 0
)

[display-section9] => Array
(
[counter] => 0
)

[display-section10] => Array
(
[counter] => 0
)

[display-section12] => Array
(
[counter] => 0
)

[display-section14] => Array
(
[counter] => 0
)

[cgu] => 1
[language] => fr-FR
[Itemid] => 125
[option] => com_content
[lang] => fr-FR
[view] => article
[id] => 3
[temoignages] =>
[note] => 2
[comment] => dfg dfg sdfg sdgsdfg sdf
[nom] => chris
[email] => chris@dddd.fr
)
Array
(
[save_data32] => Array
(
[data] => Array
(
[chronoform] => temoignages
[event] => submit
[tvout] => view
[display-section1] => Array
(
[counter] => 0
)

[_counter] => 0
[display-section8] => Array
(
[counter] => 0
)

[display-section9] => Array
(
[counter] => 0
)

[display-section10] => Array
(
[counter] => 0
)

[display-section12] => Array
(
[counter] => 0
)

[display-section14] => Array
(
[counter] => 0
)

[cgu] => 1
[language] => fr-FR
[Itemid] => 125
[option] => com_content
[lang] => fr-FR
[view] => article
[id] => =0
[temoignages] =>
[note] => 2
[comment] => ["","dfg dfg sdfg sdgsdfg sdf"]
[nom] => chris
[email] => chris@dddd.fr
[created] => 2019-03-14 11:13:05
[hash] => 5f380544ff8e8bf79be87912c92b2044
)

[_success] => Data saved successfully
[log] => Array
(
[0] => INSERT INTO `wnrsy0211_admincrm_temoignages` (`cgu`, `lang`, `id`, `note`, `comment`, `nom`, `email`, `created`, `hash`) values ('1', 'fr-FR', '=0', '2', '["","dfg dfg sdfg sdgsdfg sdf"]', 'chris', 'chris@dddd.fr', '2019-03-14 11:13:05', '5f380544ff8e8bf79be87912c92b2044');
)

[var] => Array
(
[cgu] => 1
[lang] => fr-FR
[id] => =0
[note] => 2
[comment] => ["","dfg dfg sdfg sdgsdfg sdf"]
[nom] => chris
[email] => chris@ddddd.fr
[created] => 2019-03-14 11:13:05
[hash] => 5f380544ff8e8bf79be87912c92b2044
)

)
Max_admin Max_admin 16 Mar, 2019
Answer
Please try to clear your browsing session by logging in/out then back again, does that help ?

Best regards
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin Max_admin 16 Mar, 2019
Did this solve it ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.