I have a huge select list (multiple selection) of about 2000 items. I know, it's too big, but that's the way the client want it...
Anyway, the eForm works nicely if I have less than 1339 items, after that it crashes out at line 968 (eform debug is on) when it tries to validate. I wonder if it is a memory issue?
eform line 968 (ish)
if( $isDebug && count($vlist)==1 && empty($vlist[0]) ){
//if debugging bail out big time
$modx->messageQuit('Error in validating form field!', '',$false,E_USER_WARNING,__FILE__,'','#LIST rule declared but no list values supplied: '.$fld[5],__LINE__);
The error message is "#LIST rule declared but no list values supplied"
<select name="productMachineCategories[]" multiple="multiple" size="3" eform="::0" />
[+machineCategorySelectOptions+]
</select>
I'm populating the form via a function using eformOnBeforeFormParse as suggested by TobyL in
http://forums.modx.com/index.php?topic=32161.0. The options are all valid.
Example option is
<option value="459">Agricultural > John Deere > Tractor > 3140</option>
eForm is latest 1.4.4.7. Note, if I turn off eForms debug (&debug=`0`) then it does not crash out, but does not retain the selected values in the select list.
Any ideas anyone?