Hello,
I am having an issue with a multi-select drop down named project_type. The elements of the array are not being saved to the database or put into the curly select {project_type} in an email template. I am using a handle arrays action to implode the array (with a blank fields list - as to catch all arrays) after the submit, but before the database save or email actions. Here is the debugger info.
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => web_development_quote_submission
[event] => submit
[user_first_name] => Herbert
[user_last_name] => Hoover
[user_name_organization] => ABC Company
[user_email] => someemail44@gmail.com
[user_phone_number] => 312.434.2343
[user_contact_method] => Email
[project_type] => 2
[project_current_website_2] => Yes
[user_project_budget] => $1501 - $2500
[user_project_description] => A great website.
[captcha] => w4FUH
[submit_button] => Submit Quote
[f5c633bc20f9e5994e9eb697c4d5a464832f1019] => 1
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
Stumped as to why this is not working. If any more info is needed I will provide.
I am having an issue with a multi-select drop down named project_type. The elements of the array are not being saved to the database or put into the curly select {project_type} in an email template. I am using a handle arrays action to implode the array (with a blank fields list - as to catch all arrays) after the submit, but before the database save or email actions. Here is the debugger info.
Data Array
Array
(
[option] => com_chronoforms5
[chronoform] => web_development_quote_submission
[event] => submit
[user_first_name] => Herbert
[user_last_name] => Hoover
[user_name_organization] => ABC Company
[user_email] => someemail44@gmail.com
[user_phone_number] => 312.434.2343
[user_contact_method] => Email
[project_type] => 2
[project_current_website_2] => Yes
[user_project_budget] => $1501 - $2500
[user_project_description] => A great website.
[captcha] => w4FUH
[submit_button] => Submit Quote
[f5c633bc20f9e5994e9eb697c4d5a464832f1019] => 1
)
Array
(
)
Errors
Array
(
)
Debug Info
Array
(
)
Stumped as to why this is not working. If any more info is needed I will provide.
Hi jvanschaack,
For any field to post an array value, the field name must end by "[]", this should be set in the field settings, but you can use the field name without brackets everywhere else, like in the email template..etc
Regards,
Max
For any field to post an array value, the field name must end by "[]", this should be set in the field settings, but you can use the field name without brackets everywhere else, like in the email template..etc
Regards,
Max
This topic is locked and no more replies can be posted.