Can you set the &debug parameter to 1 and then submit the form without any values entered? Then look at the debug info for the Formats Array.
For your Trading field it should show the validation rule
#FUNCTION checkFieldTradingTime
but I suspect it will be something like
#LIST None selected, Start Up (0 - 3 months),... etcetera
.
You’ve discovered a small bug... Which is easily fixed. Open up eform.in.php in the assets/snippets/eform folder and look for this bit of code (approximately around line 800.
//<?php
//add valid values to formats... (extension to $formats)
if($formats[$name] && !$formats[$name][5])
$formats[$name][4] = $_lang['ef_failed_default'];
//convert commas in values to something else !
$formats[$name][5]= "#LIST " . implode(",",str_replace(',',',',$validValues));
break;
//?>
The { } brackets are missing for the if statement, so all you have to do is replace this with:
//<?php
//add valid values to formats... (extension to $formats)
if($formats[$name] && !$formats[$name][5]){
$formats[$name][4] = $_lang['ef_failed_default'];
//convert commas in values to something else !
$formats[$name][5]= "#LIST " . implode(",",str_replace(',',',',$validValues));
}
break;
//?>