Checkbox and radiobox problem in my form.

Checkbox and radiobox problem in my form.

by Serafim Panov -
Number of replies: 6
Hello!

When I try to add checkbox or radiobox element to my form, It seems ok in the firefox, and I see only half of checkbox in Internet Explorer!!!

My Code:
$mform =& $this->_form;
$mform->addElement('header', 'topicselection_otheroptions', get_string('topicselection_options', 'topicselection'));
$mform->addElement('checkbox', 'timeslot[0]', 'checkbox', 234345435));
$this->add_action_buttons(false);

half checkbox

Average of ratings: -
In reply to Serafim Panov

Re: Checkbox and radiobox problem in my form.

by Francois COJEAN -
i got the same problem, but no answer, i guess the problem come from formslib.
In reply to Francois COJEAN

Re: Checkbox and radiobox problem in my form.

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You don't tell us which version of Moodle you are using.

This problem used to exist, but I think it was fixed. Perhaps your theme is missing bug fixes that went into the standard theme.
In reply to Tim Hunt

Re: Checkbox and radiobox problem in my form.

by Serafim Panov -
I use: Moodle 1.8 Beta + (2007021402)
I'll try to update my moodle, because I found one more problem with html area..
oneproblemtextarea.jpg
In reply to Tim Hunt

Re: Checkbox and radiobox problem in my form.

by Serafim Panov -
I've installed Moodle 1.8.2+ (2007021520)
checkboxes look good, but I still have html area problem .

I write:
$mform =& $this->_form;

$mform->addElement('header', 'general', get_string('presentation_comment', 'presentation'));

$mform->addElement('htmleditor', 'text', get_string('presentation_text', 'presentation'));
$mform->setType('text', PARAM_TEXT);
$mform->addRule('text', null, 'required', null, 'client');

$mform->addElement('file', 'submission', get_string('presentation_pptfile', 'presentation'));

$this->add_action_buttons($cancel = false);

but I see 2 thmlarea!!

oneproblemtextarea.jpg

In reply to Serafim Panov

Re: Checkbox and radiobox problem in my form.

by Pedro Parreira -
Serafim, are you editing a resource or an activity?
I was changing a form on a resource and I also got double html areas. And I'm using Moodle 1.9.3.