HTML_QuickForm -> addElement -> defaultcustom

Re: HTML_QuickForm -> addElement -> defaultcustom

by Yuval Jacobi -
Number of replies: 1

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.

In reply to Yuval Jacobi

Re: HTML_QuickForm -> addElement -> defaultcustom

by Yuval Jacobi -

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

        }