<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/language/javascript/tags/groups</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Thu, 23 May 2013 00:26:52 GMT</pubDate>
<item>
<title>(JavaScript) require one of three Salsa group checkboxes to be selected - powerthru</title>
<link>http://snipplr.com/view/42112/require-one-of-three-salsa-group-checkboxes-to-be-selected/</link>
<description><![CDATA[ <p>We set up a voting page, where supporters would choose one of three candidates (only two are shown in the snippet). By clicking the checkbox, the supporter would add themselves to a Salsa group. This way only one vote for a candidate by a supporter would count, it would be easy to find the count for each candidate, and it would be easy to find the supporters who picked each candidate. 

We wanted to make it "required" to select one of the checkboxes, but we couldn't simply make the checkbox required because then supporters would be required to choose THAT checkbox. The solution was to add another field, called pac_voted, and make it a hidden field, and require THAT field to be filled out. Then we used the javascript shown here to fill out the pac_voted field whenever any of the groups checkboxes was selected. This way if no checkbox was selected, the error checking on the page reported that a required field was missing; but if any checkbox was checked, the page passed error checking.</p> ]]></description>
<pubDate>Tue, 12 Oct 2010 16:06:27 GMT</pubDate>
<guid>http://snipplr.com/view/42112/require-one-of-three-salsa-group-checkboxes-to-be-selected/</guid>
</item>
<item>
<title>(JavaScript) KickApps: Add join group to groups list page - krunkosaurus</title>
<link>http://snipplr.com/view/14767/kickapps-add-join-group-to-groups-list-page/</link>
<description><![CDATA[ <p>For a way to add quick "join group" functionality to your group list page - put this code in your AC footer (wrapped in script tags).

--
For more tips and tricks checkout the KickApps resources page.</p> ]]></description>
<pubDate>Wed, 06 May 2009 09:58:51 GMT</pubDate>
<guid>http://snipplr.com/view/14767/kickapps-add-join-group-to-groups-list-page/</guid>
</item>
<item>
<title>(JavaScript) KickApps: Adding classes to the leave / join button on the groups page. - krunkosaurus</title>
<link>http://snipplr.com/view/11258/kickapps-adding-classes-to-the-leave--join-button-on-the-groups-page/</link>
<description><![CDATA[ <p>Sometime, you need unique classes on the leave join button of the groups page. Place this script in your AC footer.

--
For more tips and tricks checkout the KickApps resources page.</p> ]]></description>
<pubDate>Fri, 16 Jan 2009 17:21:41 GMT</pubDate>
<guid>http://snipplr.com/view/11258/kickapps-adding-classes-to-the-leave--join-button-on-the-groups-page/</guid>
</item>
</channel>
</rss>