Hi,
I have searched and read many posts and I am obviously missing something totally obvious. I have set up a form with dynamic dropdowns which on submission emails me the data. I had the form auto generate the template but still it emails me with values such as Select Group group_2
Home Team selection_2c etc
I will paste the debug below. I have xxxxx'd out the actual email addresses. Again apologies for being a little dumb.
Notice
Could not instantiate mail function.
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => resultreport
[event] => submit
[year_1] => age_1
[group_1] => group_2
[hteam_1] => selection_2c
[input_text_5] => 45
[ateam_1] => selection_2a
[input_text_6] => 23
[input_text_10] => 26398
[input_submit_11] => Submit
[9be67f7b523f40c8bd7d6dcc46214490] => 1
)
Validation Errors:
Array
(
)
Your Results Have Been Successfully Submitted
Debug Data
email
6
Result
An email has been SENT successfully from (Ospreys Schools)xxxxx@ospreyscup.org to [email]xxxxxx@ospreyscup.org[/email],xxxxxxx@gmail.com
Body
School Year age_1
Select Group group_2
Home Team selection_2c
Home Team Score 45
Away Team selection_2a
Away Team Score 23
Pin Number 26398
Submitted by xxx.xxx.xxx.xxx
Attachments
array ( )
I have searched and read many posts and I am obviously missing something totally obvious. I have set up a form with dynamic dropdowns which on submission emails me the data. I had the form auto generate the template but still it emails me with values such as Select Group group_2
Home Team selection_2c etc
I will paste the debug below. I have xxxxx'd out the actual email addresses. Again apologies for being a little dumb.
Notice
Could not instantiate mail function.
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => resultreport
[event] => submit
[year_1] => age_1
[group_1] => group_2
[hteam_1] => selection_2c
[input_text_5] => 45
[ateam_1] => selection_2a
[input_text_6] => 23
[input_text_10] => 26398
[input_submit_11] => Submit
[9be67f7b523f40c8bd7d6dcc46214490] => 1
)
Validation Errors:
Array
(
)
Your Results Have Been Successfully Submitted
Debug Data
6
Result
An email has been SENT successfully from (Ospreys Schools)xxxxx@ospreyscup.org to [email]xxxxxx@ospreyscup.org[/email],xxxxxxx@gmail.com
Body
School Year age_1
Select Group group_2
Home Team selection_2c
Home Team Score 45
Away Team selection_2a
Away Team Score 23
Pin Number 26398
Submitted by xxx.xxx.xxx.xxx
Attachments
array ( )
I noticed in one of the threads that someone had Could not instantiate mail function and was advised to use greyheads email add on. So I installed that but same result. It is showing age_1 instead of year 11 etc. Debug from new attempt below
Data Array:
Array
(
[option] => com_chronoforms
[chronoform] => resultreport
[event] => submit
[year_1] => age_1
[group_1] => group_3
[hteam_1] => selection_3c
[input_text_5] => 65
[ateam_1] => selection_3a
[input_text_6] => 23
[input_text_10] => 23968
[input_submit_11] => Submit
[53e4d96e04880c3b27ea0c79a503cf5e] => 1
[IPADDRESS] => 2.126.40.141
)
Validation Errors:
Array
(
)
Your Results Have Been Successfully Submitted
Debug Data
Email info
Email sent successfully
From: (Schools Ospreyscup) xxxxxx@ospreyscup.org
To: xxxxxx@ospreyscup.org, xxxxxx@gmail.com
Subject: Ospreys Schools Result
Email body
Results Reporting Form
Please complete the following form to report the results of your regional matches
School Year age_1
Select Group group_3
Home Team selection_3c
Home Team Score 65
Away Team selection_3a
Away Team Score 23
Pin Number 23968
I have also noticed that the text input shows up fine. It is the dynamic drop downs I seem to have an issue with. They work fine on the site but are not emailing. I have rewatched the email tutorials just in case and re read the basics pdf on grey head site. It still appears I am missing something obvious. I have no issues if I remove the dynamic dropdowns so maybe I have missed something there? I have re read the tutorial on dynamic drop downs with out ajax and it all appears to be correct.
Hi triage,
The value of the drop-down will be the 'value' of the selected option and not the 'text' that is visible on screen. Is this the problem? If so then this FAQ should help.
Bob
The value of the drop-down will be the 'value' of the selected option and not the 'text' that is visible on screen. Is this the problem? If so then this FAQ should help.
Bob
Thank you very much. that was the FAQ I have been searching for🙂.
I fixed it by renaming all the values to = the text so that it was easier to understand. I did consider the custom code however with the around 50 different total options and with only a human reading the results I decided against it.
Thank you again
traige
I fixed it by renaming all the values to = the text so that it was easier to understand. I did consider the custom code however with the around 50 different total options and with only a human reading the results I decided against it.
Thank you again
traige
This topic is locked and no more replies can be posted.