Forums

(SOLVED)Some fields and field choices not passing to email

Garry 07 May, 2013
Hello,

Bit of a noob here, but I did take the time to do days of searching on the forums and reading through tutorials to try and find a solution for this. I am sure someone has probably posted on this or I overlooked it in the great amount of information on ChronoForms.

Joomla 2.5.8
ChronosForms 4.0 RC3.5.2

Form contains model number check boxes for customer to select. Some of the check boxes have only one choice, which at first I thought was the issue but it turned out some of the multiple choice check boxes were not going through and some of the single choice ones were.

The field naming convention was the model numbers we use i.e. 5850, 3500L, 3400 etc. Looking at the debugging output of the array I noticed that some of my fields output [0]. [1] instead of the field name/id.

It took awhile for me to notice the pattern and thought I would give it a shot even though it would seem there would have been a clue somewhere in the field naming to not do this (there might be but I have not seen it).

It appears that any of our model numbers that were only four digit numbers and contained no lettering were not being passed to the field id or the field choices through to the email template and email form.

SOLUTION:Add a letter or series of letters to the numbers. In my case that is all it took.

Thanks for the great form extension!
GreyHead 07 May, 2013
Hi Garry,

Well found. The problem here has two parts (a) names and ids starting with numbers aren't legal in HTML and will throw W3C validation errors; more importantly (b) ChronoForms sometimes uses those names or ids as variable names in PHP or column names in MySQL and in both cases names starting with numbers are 'illegal' and will break the code.

Bob
This topic is locked and no more replies can be posted.