Radio button in mod_form sets the checked attribute wrong.

Re: Radio button in mod_form sets the checked attribute wrong.

by Davo Smith -
Number of replies: 1
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You seem to be missing param 6 of the add_group function ( https://docs.moodle.org/dev/lib/formslib.php_Form_Definition#addGroup ). Without setting this to false, the group modifies the names of the group elements.

This may be what is breaking the initialisation of the value.


Average of ratings: Useful (1)
In reply to Davo Smith

Re: Radio button in mod_form sets the checked attribute wrong.

by Florian Fassing -
That was exactly the problem. Thank you very much.

greetings