No action when submit

Teo76 18 Feb, 2016
Hi,
I have a problem with this form: http://www.porto15.it/index.php/come-partecipare/compila-il-questionario
When I arrive at the last page the submit button doesn't do anything (it should create a pdf, send an email and display a message in a new page).
The strange thing is that it has worked fine until 00:44 18/02/2016 (the last entry in my db).
I have compared this form with the other one on the site and the button, the submit page setup and so on looks the same.

I have read this faq and tried to set No to 'Relative URL', but with no results.

How can I solve this problem?

Thanx,
Matteo
GreyHead 18 Feb, 2016
Hi Matteo,

If you try submitting your form you will see an error message after you submit
1054 - Unknown column 'Array' in 'field list' SQL=INSERT INTO `ia1ms_Teo_QuestionarioPorto15` (`D_differenze`, `D_tempo_libero`, `D_beni`, `D_competenze`, `D_gas`, `D_bambini`, `D_cond_altro`, `D_cond_altro_spec`, `D_spcom_servizi`, `D_comp_imp`, `D_comp_imp_spec`, `D_lab`, `D_valori`, `D_gestione`, `D_prog_spcom`, `D_prog_servizi`, `D_email`, `A_parentela1`, `A_nomecognome1`, `A_eta1`, `A_professione1`, `A_parentela2`, `A_nomecognome2`, `A_eta2`, `A_professione2`, `A_parentela3`, `A_nomecognome3`, `A_eta3`, `A_professione3`, `A_parentela4`, `A_nomecognome4`, `A_eta4`, `A_professione4`, `A_cond_lav`, `B_conoscenza`, `B_conoscenza_spec`, `B_contesto`, `B_interessato`, `B_attrattive`, `C_abitazione_attuale`, `C_abitazione_spec`, `C_situa_abitativa`, `C_situa_spec`, `C_cordialita`, `C_favori`, `C_frequentazione`, `C_tensioni`, `C_nessuna`, `C_altro`, `C_rel_altro`, `C_partecipazione`, `C_part_spec`, `C_esperienza`, `C_part_associazioni`, `C_part_quale`, `user_id`, `created`) values ('D_differenze', 'nonzo', 'nonzo', 'nonzo', 'nonzo', 'nonzo', 'nonzo', 'D_cond_altro_spec', 'D_spcom_servizi', 'Si', 'D_comp_imp_spec', 'nonzo', 'nonzo', 'nonzo', 'nonzo', 'nonzo', 'example@example.com', 'Candidato/a', 'A_nomecognome1', '1', 'A_professione1', '1234567890', 'A_nomecognome2', '2', 'A_professione2', '1234567890', 'A_nomecognome3', '3', 'A_professione3', '1234567890', 'A_nomecognome4', '4', 'A_professione4', 'A_cond_lav', 'altro', 'B_conoscenza_spec', 'no', 'B_interessato', 'B_attrattive', 'altro', 'C_abitazione_spec', 'altro', 'C_situa_spec', '1', '1', '1', '1', '1', '1', 'C_rel_altro', 'Si', 'C_part_spec', 'C_esperienza', 'Si', Array, '0', '2016-02-18 14:39:40');
it looks as though the problem is that the input C_part_quale is submitting an array which isn't being converted into a string before saving.

Please drag a Handle Arrays action into the OnSubmit event and move it up before the DB Save and Email actions.

Bob
Teo76 18 Feb, 2016
Thanks Bob,
I screw the array up doing tests. Now that works.
Probably I have found the problem: the field D_comp_imp_spec is hidden and required and appears only if D_comp_imp is 'Si'.
I think that the problem occurs when the field is hidden so the submit button doesn't work because it waits for a input in the required field.
Do you think it is possible?

Teo
GreyHead 19 Feb, 2016
Hi Teo76,

I believe that the validation ignores hidden inputs. Please post a link to the form so I can take a quick look.

Bob
Teo76 19 Feb, 2016

I believe that the validation ignores hidden inputs


I believed it too, but disabling the validation in the hidden field it works :-)

This is the link to the 4th page: http://www.porto15.it/index.php/come-partecipare/compila-il-questionario?chronoform=QuestionarioPorto15&event=page4
The 4th question is the one that has hidden inputs.
GreyHead 19 Feb, 2016
HI Matteo,

I built a test form here and it seems to work OK.

As far as I can see your form doesn't have the textarea required so I can't test there.

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