<?xml version="1.0"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>Appnitro Software Forums Topic: Radio buttons on same line?</title>
<link>http://www.appnitro.com/forums/</link>
<description>Appnitro Software Forums Topic: Radio buttons on same line?</description>
<language>en</language>
<pubDate>Wed, 07 Jan 2009 00:05:34 +0000</pubDate>

<item>
<title>LaMaison on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-4107</link>
<pubDate>Wed, 31 Dec 2008 05:44:21 +0000</pubDate>
<dc:creator>LaMaison</dc:creator>
<guid isPermaLink="false">4107@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;redityo,&#60;/p&#62;
&#60;p&#62;Great mod.&#60;/p&#62;
&#60;p&#62;Thanks
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-4049</link>
<pubDate>Fri, 19 Dec 2008 15:22:31 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">4049@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Have you tried the above CSS code? That should do it.
&#60;/p&#62;</description>
</item>
<item>
<title>miamiman on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-4046</link>
<pubDate>Fri, 19 Dec 2008 05:41:57 +0000</pubDate>
<dc:creator>miamiman</dc:creator>
<guid isPermaLink="false">4046@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Sorry guys, but how do you easily set up a horizontal radio button series?&#60;/p&#62;
&#60;p&#62;Do you...?&#60;br /&#62;
Yes / No / Maybe&#60;/p&#62;
&#60;p&#62;Thanks,
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3912</link>
<pubDate>Sat, 06 Dec 2008 13:50:54 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">3912@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Paste me your form URL or shoot an email to customer.service [at] appnitro.com&#60;br /&#62;
I'll check your form.
&#60;/p&#62;</description>
</item>
<item>
<title>teamwebb2008 on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3905</link>
<pubDate>Sat, 06 Dec 2008 01:12:53 +0000</pubDate>
<dc:creator>teamwebb2008</dc:creator>
<guid isPermaLink="false">3905@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Darn, looks like I'm going to have to manually align my check boxes, neither of the above worked for me.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3502</link>
<pubDate>Sat, 01 Nov 2008 10:01:02 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3502@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hello Mike,&#60;/p&#62;
&#60;p&#62;Actually it must use the table :) to do so. You should modify some code on &#34;includes/view-functions.php&#34; files. There are 2 main function should change, try to follow there steps :&#60;/p&#62;
&#60;p&#62;1. check box modification&#60;/p&#62;
&#60;p&#62;Replace code between line 558 ~ 580, with this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$option_markup = &#38;#39;&#38;#39;;

$option_markup .= &#38;#39;&#38;lt;table width=&#38;quot;580px&#38;quot; border=&#38;quot;0&#38;quot; cellpadding=&#38;quot;0&#38;quot;&#38;gt;&#38;#39;;
$cell_col = 1;

foreach ($element-&#38;gt;options as $option){
	if(!$is_populated){
		if($option-&#38;gt;is_default){
			$checked = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;;
		}else{
			$checked = &#38;#39;&#38;#39;;
		}
	}else{

		if(!empty($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id.&#38;#39;_&#38;#39;
		.$option-&#38;gt;id][&#38;#39;default_value&#38;#39;])){
			$checked = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;;
		}else{
			$checked = &#38;#39;&#38;#39;;
		}
	}

	$option_input = &#38;quot;&#38;lt;input id=\&#38;quot;element_{$element-&#38;gt;id}_{$option-&#38;gt;id}\&#38;quot;
	name=\&#38;quot;element_{$element-&#38;gt;id}_{$option-&#38;gt;id}\&#38;quot;
	class=\&#38;quot;element checkbox\&#38;quot; type=\&#38;quot;checkbox\&#38;quot; value=\&#38;quot;1\&#38;quot; {$checked} /&#38;gt;&#38;quot;;
	$option_label = &#38;quot;&#38;lt;label class=\&#38;quot;choice\&#38;quot; for=\&#38;quot;element_{$element-&#38;gt;id}_{$option-&#38;gt;id}\&#38;quot;&#38;gt;
	{$option-&#38;gt;option}&#38;lt;/label&#38;gt;&#38;quot;;

	if ($cell_col == 1) {
		$option_markup .= &#38;#39;&#38;lt;tr&#38;gt;&#38;#39;;
	}		

	$option_markup .= &#38;#39;&#38;lt;td width=&#38;quot;35%&#38;quot;&#38;gt;&#38;#39; . $option_input . &#38;#39; &#38;#39; . $option_label . &#38;#39;&#38;lt;/td&#38;gt;&#38;#39;;

	if ($cell_col == 3) {
		$option_markup .= &#38;#39;&#38;lt;/tr&#38;gt;&#38;#39;;
		$cell_col = 0;
	}

	$cell_col++;

}

$option_markup .= &#38;#39;&#38;lt;/table&#38;gt;&#38;#39;;&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;2. radio option modification&#60;/p&#62;
&#60;p&#62;Replace code between line 485~ 511 (before modification), with this :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$option_markup  .= &#38;#39;&#38;lt;table width=&#38;quot;580px&#38;quot; border=&#38;quot;0&#38;quot;&#38;gt;&#38;#39;;
$cell_col = 1;

foreach ($element-&#38;gt;options as $option){

	if($option-&#38;gt;is_default){
		$checked = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;;
	}else{
		$checked = &#38;#39;&#38;#39;;
	}

	//check for populated values
	if(!empty($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id][&#38;#39;default_value&#38;#39;])){
		$checked = &#38;#39;&#38;#39;;
		if($element-&#38;gt;populated_value[&#38;#39;element_&#38;#39;.$element-&#38;gt;id][&#38;#39;default_value&#38;#39;]
		== $option-&#38;gt;id){
			$checked = &#38;#39;checked=&#38;quot;checked&#38;quot;&#38;#39;;
		}
	}

	$option_input = &#38;quot;&#38;lt;input id=\&#38;quot;element_{$element-&#38;gt;id}_{$option-&#38;gt;id}\&#38;quot;
	name=\&#38;quot;element_{$element-&#38;gt;id}\&#38;quot; class=\&#38;quot;element radio\&#38;quot;
	type=\&#38;quot;radio\&#38;quot; value=\&#38;quot;{$option-&#38;gt;id}\&#38;quot; {$checked} /&#38;gt;&#38;quot;;
	$option_label = &#38;quot;&#38;lt;label class=\&#38;quot;choice\&#38;quot; for=\&#38;quot;element_{$element-&#38;gt;id}_{$option-&#38;gt;id}\&#38;quot;&#38;gt;
	{$option-&#38;gt;option}&#38;lt;/label&#38;gt;&#38;quot;;

	if ($cell_col == 1) {
		$option_markup .= &#38;#39;&#38;lt;tr&#38;gt;&#38;#39;;
	}		

	$option_markup .= &#38;#39;&#38;lt;td width=&#38;quot;35%&#38;quot;&#38;gt;&#38;#39; . $option_input . &#38;#39; &#38;#39; . $option_label . &#38;#39;&#38;lt;/td&#38;gt;&#38;#39;;

	if ($cell_col == 3) {
		$option_markup .= &#38;#39;&#38;lt;/tr&#38;gt;&#38;#39;;
		$cell_col = 0;
	}

	$cell_col++;
}

$option_markup .= &#38;quot;&#38;lt;/table&#38;gt;&#38;quot;;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>mmaywood on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3496</link>
<pubDate>Fri, 31 Oct 2008 17:52:22 +0000</pubDate>
<dc:creator>mmaywood</dc:creator>
<guid isPermaLink="false">3496@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hello everyone, is there anyway with checkboxes or radio buttons to block them in like a table, so the options align, my issue is that I want only three options per line, while the relative option is great it does not align well, there are around twenty check boxes in my list.. so it starts to look a real jumble.  Thanks  Mike
&#60;/p&#62;</description>
</item>
<item>
<title>katya on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3136</link>
<pubDate>Sat, 27 Sep 2008 15:27:03 +0000</pubDate>
<dc:creator>katya</dc:creator>
<guid isPermaLink="false">3136@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Very much appreciated! thank you. worked just right.
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3135</link>
<pubDate>Sat, 27 Sep 2008 08:00:30 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3135@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;try to search &#34;#main_body input.checkbox&#34; and replace with these code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#main_body input.checkbox
{
	display:inline;
       _top:0.5em;
	/*height:13px;*/
	/*line-height:1.4em;*/
	/*margin:6px 0 0 3px;*/
	/*width:13px;*/
}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>katya on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3131</link>
<pubDate>Fri, 26 Sep 2008 20:46:18 +0000</pubDate>
<dc:creator>katya</dc:creator>
<guid isPermaLink="false">3131@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Thanks! that seem to do the job. How about the checkboxes&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://holtmusic.com.au/contact/view.php?id=3&#34; rel=&#34;nofollow&#34;&#62;http://holtmusic.com.au/contact/view.php?id=3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;would you mind telling me how I can put the checkbox next to the name:&#60;/p&#62;
&#60;p&#62;Bubble Machine&#60;br /&#62;
Smoke Machine&#60;br /&#62;
Lasers&#60;br /&#62;
Dry Ice Effect
&#60;/p&#62;</description>
</item>
<item>
<title>redityo on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3127</link>
<pubDate>Fri, 26 Sep 2008 18:33:43 +0000</pubDate>
<dc:creator>redityo</dc:creator>
<guid isPermaLink="false">3127@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi katya,&#60;/p&#62;
&#60;p&#62;I have seen your form it seems your element id = 1 type isn't radio button,  but I curious do you want to change all radio button or only some of them ?&#60;/p&#62;
&#60;p&#62;if you want to change some radio button you can change by these code, where 7 is your radio button element id :&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_7 label.choice {
	display:inline ;
	position:relative ;
	margin-left: 0.2em ;
	_top:0.2em;
}

#li_7 input.radio {
	display: inline ;
	margin-left: 0.5em;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;but it's more easier if you line up all radio button, just find &#34;#main_body input.radio&#34; and&#60;br /&#62;
 &#34;#main_body label.choice&#34; section in your CSS form and replace with these code&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#main_body input.radio
{
	display:inline;
        _top:0.2em;
	/*height:13px;*/
	/*line-height:1.4em;*/
	/*margin:6px 0 0 3px;*/
	/*width:13px;*/
}

#main_body label.choice
{
	color:#444;
	display:inline;
	font-size:100%;
	line-height:1.4em;
	/*margin:-1.55em 0 0 25px;*/
	padding:4px 0 5px;
	width:90%;
        position:relative;
	margin-left: 0.2em;
	_top:0.2em;

}&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>katya on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-3125</link>
<pubDate>Fri, 26 Sep 2008 16:06:21 +0000</pubDate>
<dc:creator>katya</dc:creator>
<guid isPermaLink="false">3125@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;I have my form at &#60;a href=&#34;http://holtmusic.com.au/contact/view.php?id=3&#34; rel=&#34;nofollow&#34;&#62;http://holtmusic.com.au/contact/view.php?id=3&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I added your coding suggestion for side by side radio buttons to my css.&#60;/p&#62;
&#60;p&#62;#li_1 label.choice {&#60;br /&#62;
	display:inline;&#60;br /&#62;
	position:relative;&#60;br /&#62;
	margin-left: 0.2em;&#60;br /&#62;
	_top:0.2em;&#60;br /&#62;
}&#60;/p&#62;
&#60;p&#62;#li_1 input.radio {&#60;br /&#62;
	display: inline;&#60;br /&#62;
	margin-left: 0.5em;&#60;br /&#62;
}&#60;br /&#62;
but not sure why it didnt work. Could you take a peek please?
&#60;/p&#62;</description>
</item>
<item>
<title>yuniar on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-329</link>
<pubDate>Tue, 20 Nov 2007 07:02:19 +0000</pubDate>
<dc:creator>yuniar</dc:creator>
<guid isPermaLink="false">329@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi Eric,&#60;/p&#62;
&#60;p&#62;For radio buttons/checkboxes, we need a different method.&#60;br /&#62;
Take a look at this sample &#60;a href=&#34;http://www.appnitro.com/forms/view.php?id=7&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forms/view.php?id=7&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;You can see the custom CSS at the bottom of this file:&#60;br /&#62;
&#60;a href=&#34;http://www.appnitro.com/forms/data/form_7/css/view.css&#34; rel=&#34;nofollow&#34;&#62;http://www.appnitro.com/forms/data/form_7/css/view.css&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;So basically what we need to do is to set the &#60;strong&#62;display&#60;/strong&#62; property of those labels, checkboxes and radio button to &#60;strong&#62;inline&#60;/strong&#62;.&#60;/p&#62;
&#60;p&#62;On the sample form above, if you look at the HTML code, Multiple Choice is surrounded by a li with id &#60;strong&#62;li_1&#60;/strong&#62;, the CSS for this element:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_1 label.choice {
	display:inline;
	position:relative;
	margin-left: 0.2em;
	_top:0.2em;
}

#li_1 input.radio {
	display: inline;
	margin-left: 0.5em;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;While the Checkboxes fields are surrounded by a li with id &#60;strong&#62;li_2&#60;/strong&#62;, the CSS is:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;#li_2 label.choice {
	display:inline;
	position:relative;
	margin-left: 0.2em;
	_top:0.2em;
}

#li_2 input.checkbox{
	display: inline;
	margin-left: 0.5em;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;So you can use the above CSS for your form, one for the checkboxes and the other for multiple choice. Adjust &#60;strong&#62;li_1&#60;/strong&#62; and &#60;strong&#62;li_2&#60;/strong&#62; to match your elements id.&#60;/p&#62;
&#60;p&#62;Let me know if you need more help.
&#60;/p&#62;</description>
</item>
<item>
<title>EricM on "Radio buttons on same line?"</title>
<link>http://www.appnitro.com/forums/topic/radio-buttons-on-same-line#post-327</link>
<pubDate>Mon, 19 Nov 2007 23:09:15 +0000</pubDate>
<dc:creator>EricM</dc:creator>
<guid isPermaLink="false">327@http://www.appnitro.com/forums/</guid>
<description>&#60;p&#62;Hi i know its been posted how to put 2 fields on the same line but is there a way to put radio buttons or checkboxes on the same line?&#60;/p&#62;
&#60;p&#62;thanks&#60;/p&#62;
&#60;p&#62;btw  great application
&#60;/p&#62;</description>
</item>

</channel>
</rss>
