<![CDATA[ "Form Select" dropdown in formit CMP - My Forums]]> https://forums.modx.com/thread/?thread=103769 <![CDATA["Form Select" dropdown in formit CMP]]> https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558165
The 'Form Select' dropdown list in the Formit CMP is empty, even though I have at least 5 different forms. I cannot select any. Should I enter some value for a variable in the systems settings?

Tnx for your help

Ludo
]]>
omegerard Apr 23, 2018, 11:04 AM https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558165
<![CDATA[Re: "Form Select" dropdown in formit CMP (Best Answer)]]> https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558339 Quote from: omegerard at Apr 23, 2018, 11:04 AM
Hi

The 'Form Select' dropdown list in the Formit CMP is empty, even though I have at least 5 different forms. I cannot select any. Should I enter some value for a variable in the systems settings?

Tnx for your help

Ludo

I seem to have found the cause for this weird behaviour.

This is what the modx error log had to say:


[2018-05-03 10:48:41] (ERROR @ /var/www/html/core/xpdo/om/xpdoobject.class.php : 240) Error 42000 executing statement:
Array
(
[0] => 42000
[1] => 1055
[2] => Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'modxforgipso.FormItForm.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
)


I went into mysql and entered the following command


mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

Problem solved.

For those who might be served by this solution.

For the others, does anybody know what this sql_mode is all about?

Regards

Ludo]]>
omegerard May 03, 2018, 01:38 PM https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558339
<![CDATA[Re: "Form Select" dropdown in formit CMP]]> https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558167 Quote from: lkfranklin at Apr 23, 2018, 11:12 AM
Have you given your form names in the formit call with forName=`Form 1` and also included the FormItSaveForm hook ?

https://docs.modx.com/extras/revo/formit/formit.hooks/formit.hooks.formitsaveform
Thanks for your help.
Yes, I did.
I see the the form entries listed underneath the 4 'Select' entries (context, form, start date, end date). I can select context, but not form. Its list is empty (though the list of entries is not).
Ludo]]>
omegerard Apr 23, 2018, 02:15 PM https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558167
<![CDATA[Re: "Form Select" dropdown in formit CMP]]> https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558166
https://docs.modx.com/extras/revo/formit/formit.hooks/formit.hooks.formitsaveform]]>
lkfranklin Apr 23, 2018, 11:12 AM https://forums.modx.com/thread/103769/form-select-dropdown-in-formit-cmp#dis-post-558166