I have a form with a selection in it, like this:
$mform->addElement('select', 'modellist', get_string('modellist', 'local_plan_animation'), $models);
$mform->addRule('modellist', get_string('errorrequired', 'local_plan_animation'), 'required', '', 'server', false, false);
Problem is when i submit the form i have this error: Undefined property: stdClass::$modellist
The modellist isn't in the $fromform. I'm kinda confused because it was working before.
I modify the 'modellist' with a js to change it's value when an other select element is changed but i don't really know why it would affect the modellist submission since everything seems fine when i look at the html structure when testing.