cartoon face eating cheetos.

Voting in Gravity Forms

This is one of those unique needs but with base elements that are likely to be useful in other scenarios. It looks at the logical operators in Gravity Forms which require no programming knowledge, looks at using cookies to discourage more than one entry, and finally moves to using the API to display data. That’s a decent tour of complexity and capability. Origin Story People wanted to vote. They get to vote for 5 people. There are 5 known people on the ballot (multi-select checkbox) but people can also write in candidates but they could submit no more than 5 people total. Additionally we wanted to prevent people from voting again but did not want the overhead of user accounts and did not want to compromise privacy by using email addresses. And the final goal was to have a visible count of votes cast. Party of 5 Solution1 Gravity Forms will let you do conditional logic. In this case I set up our primary field as a checkbox with our 5 main people as options. I then made 5 free entry text fields. I set the logic so that each free entry field will be hidden if the paired checkbox is checked. Checking person 1 results in free entry field 1 going away, checking person 2 removes free entry 2 […]

Teaching the Election – The Internet Way

Here are the things I’d be working into the mix if I were teaching English, government, math/stats or history in this fine political season. Political Bias? Lifehacker pointed out this cool little Greasemonkey script “Memeorandum Colors script colors sites that usually link to conservative topics red, and sites that generally link to liberal topics blue (the colors get darker or lighter depending on the sites’ linking activity). The result is a quick visualization of what kind of political site a link points to using colors.” Let them read how it works and think about how that might slant things in strange ways (what if I’m conservative but am consistently linking to liberal blogs in order to attack them?) This would be the start of a conversation between the class and myself. What purpose does this script serve? In what ways can we use the data it generates to inform what we’re reading? What happens to readers and the way we consume information as ideas like this become more commonplace? Red vs Blue Book Buying Here’s a chance for some discussion of voting demographics and a chance to really get some good critical thinking going with data and causation. The maps are of “red” and “blue” books and their purchase rate (through Amazon) prior to 2004 and 2008 elections. The great […]