<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ARadio_button</id>
	<title>Development:Radio button - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Development%3ARadio_button"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Radio_button&amp;action=history"/>
	<updated>2026-05-06T21:59:00Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Radio_button&amp;diff=11750&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Radio_button&amp;diff=11750&amp;oldid=prev"/>
		<updated>2024-10-21T08:53:05Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 08:53, 21 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Development:Radio_button&amp;diff=11749&amp;oldid=prev</id>
		<title>1&gt;Pilpi в 14:40, 15 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Development:Radio_button&amp;diff=11749&amp;oldid=prev"/>
		<updated>2010-05-15T14:40:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Development: Moodle User Interface Guidelines|Moodle User Interface Guidelines]] &amp;gt; &amp;#039;&amp;#039;&amp;#039;Radio button&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
== Problem ==&lt;br /&gt;
There are multiple choices, of which the user can only select one.&lt;br /&gt;
&lt;br /&gt;
== Context ==&lt;br /&gt;
You are designing a form.&lt;br /&gt;
&lt;br /&gt;
== Forces: factors that affect selection ==&lt;br /&gt;
* Radio buttons and dropdown menus are too verbose for a binary choice: use check boxes instead.&lt;br /&gt;
* Dropdown menus hide the other choice&lt;br /&gt;
* Some times there is no room for a set of radio buttons&lt;br /&gt;
&lt;br /&gt;
== Solution ==&lt;br /&gt;
&lt;br /&gt;
Create a set of radio buttons, each with an id attribute. Add a label for each radio button &amp;#039;&amp;#039;&amp;#039;after&amp;#039;&amp;#039;&amp;#039; the radio button (in left-to-right languages, on the right of the radio button). As the text content of the label element, write the result of selecting the radio button in question: &lt;br /&gt;
&lt;br /&gt;
 Show me the&lt;br /&gt;
   () Money&lt;br /&gt;
   () Way to happiness&lt;br /&gt;
   () Glimmering light of an LCD screen&lt;br /&gt;
&lt;br /&gt;
Moodle forms have a left column for the descriptions of the elements in forms, and a right column for the element itself. Radio buttons should have a easy-to-scan short caption on the left column, so that items are easy to find. &lt;br /&gt;
&lt;br /&gt;
 Display of desired things   Show me the:&lt;br /&gt;
                             () Money&lt;br /&gt;
                             () Way to happiness&lt;br /&gt;
                             () Glimmering light of an LCD screen&lt;br /&gt;
&lt;br /&gt;
Determine a reasonable default for the value of the set of radio buttons. The reasonable default should be such that if a user does not notice the option, they probably do not mind leaving it to default. If no reasonable default can be determined, you can make the set of radio buttons a required field and have none of the radio buttons selected by default.&lt;br /&gt;
&lt;br /&gt;
A special case: Sometimes you may want users to be capable of selecting multiple items in a set, but limit the number of items (a kind of a mix between radio buttons and checkboxes). HTML does not support this limitation directly, but you can use checkboxes and then  script it either in Javascript or server side, in PHP.&lt;br /&gt;
&lt;br /&gt;
== Common mistakes ==&lt;br /&gt;
&lt;br /&gt;
Do not express the option label as a question: &amp;quot;Do you want to see the money?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Do not invert the option to negative voice: &amp;quot;Don&amp;#039;t show me the money&amp;quot;. Most times, only positive voice should be used.&lt;br /&gt;
&lt;br /&gt;
Do not use radio buttons or dropdowns when there are only two choices.&lt;br /&gt;
&lt;br /&gt;
== Examples and implementation ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Related guidelines ==&lt;br /&gt;
&lt;br /&gt;
* [[Development:Checkbox|Checkbox]]&lt;br /&gt;
* [[Development:Switch Button|Switch Button]]&lt;br /&gt;
* Sometimes extra options should be hidden with [[Development:Progressive Disclosure|Progressive disclosure]]&lt;br /&gt;
&lt;br /&gt;
== Related issues in the tracker ==&lt;br /&gt;
&lt;br /&gt;
* MDL-19659 - Usability test: Proper display of configuration variables&amp;#039; default values; related: http://moodle.org/mod/forum/discuss.php?d=124533&lt;br /&gt;
** TODO: turn dropdowns into checkboxes and radio buttons in most of Moodle (http://moodle.org/mod/forum/discuss.php?d=126481 )&lt;br /&gt;
** TODO: See [[User:Frank_Ralf/Moodle_forms1]]&lt;br /&gt;
&lt;br /&gt;
== Further information / Sources  ==&lt;br /&gt;
* [http://moodle.org/mod/forum/discuss.php?d=126481 Alternatives to yes/no dropdown menus?]&lt;br /&gt;
* [http://library.gnome.org/devel/hig-book/stable/controls-radio-buttons.html.en GNOME HIG: Radio Buttons]&lt;br /&gt;
&lt;br /&gt;
[[Category:Moodle User Interface Guidelines]]&lt;/div&gt;</summary>
		<author><name>1&gt;Pilpi</name></author>
	</entry>
</feed>