Create Unchecked Radio Button

Create Unchecked Radio Button

by N Prasad -
Number of replies: 0

I use this code

& MoodleQuickForm::createElement('radio', 'Sun', null, get_string('sunday','calendar'),0,''); to make a radio button label for Sunday, but it ALWAYS seems to be checked. How do I set it such that is unchecked when created.

Many many thanks in advance if you could help.

Average of ratings: Useful (1)