General developer forum

HTML_QuickForm -> addElement -> defaultcustom

 
Picture of Yuval Jacobi
Re: HTML_QuickForm -> addElement -> defaultcustom
 

Thanks Darko!

Your code example works here too. 

This should give me a hint for putting that to work right. 

smile

Will publish the change later on...

YJ.

 
Average of ratings: -
Picture of Yuval Jacobi
Re: HTML_QuickForm -> addElement -> defaultcustom
 

Figured it out...


in course/editsection_form.php, comment out line 91 


        if (strval($default_values->name) === '') {

            // $default_values->name = false; // custom checkbox needs to be CHECKED in order to encourage user to fill-in a proper name

        }

 
Average of ratings: -