<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Use GF for Self-Assessment type quiz?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz</link>
		<description>Gravity Support Forums Topic: Use GF for Self-Assessment type quiz?</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:17:09 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/use-gf-for-self-assessment-type-quiz" rel="self" type="application/rss+xml" />

		<item>
			<title>DrDavid on "Use GF for Self-Assessment type quiz?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz#post-19993</link>
			<pubDate>Sun, 06 Mar 2011 01:44:51 +0000</pubDate>
			<dc:creator>DrDavid</dc:creator>
			<guid isPermaLink="false">19993@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I ended up doing this in functions.php&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_action(&#38;quot;gform_pre_submission&#38;quot;, &#38;quot;pre_submission_handler&#38;quot;);
function pre_submission_handler($form_meta){
	if($form_meta[&#38;quot;id&#38;quot;] == &#38;#39;1&#38;#39;){
		$total_value = 0;
		foreach($form_meta[&#38;quot;fields&#38;quot;] as $field){
			$value = $_POST[&#38;quot;input_&#38;quot; . $field[&#38;quot;id&#38;quot;]];
			$total_value = $total_value + $value;
		}
		$_POST[&#38;quot;input_8&#38;quot;] = $total_value;
	}
	return $form;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I'm sure there's a more elegant way, but, this worked.&#60;/p&#62;
&#60;p&#62;input_8 is a hidden field to store the cumulative value.&#60;/p&#62;
&#60;p&#62;I turned on 'values' and each multiple choice answer got assigned the point value I wanted.&#60;/p&#62;
&#60;p&#62;I'm posting this here in the hopes that it can 1) help someone else, and 2) others can help me improve on this :)&#60;/p&#62;
&#60;p&#62;What I'm still not sure on is how I can retrieve the hidden field value easily? Or, if there's any easy way to use a querystring to selectively hide/show the &#34;results&#34; on the confirmation page.&#60;/p&#62;
&#60;p&#62;I guess what would be nice would be to have some sort of scripting ability on the notification page so that I can do something like [if input_8 &#38;gt;= 2 &#124;&#124; input_8 &#38;lt;= 4 then....]&#60;/p&#62;
&#60;p&#62;Anyways, just a thought.&#60;/p&#62;
&#60;p&#62;David
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Use GF for Self-Assessment type quiz?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz#post-19961</link>
			<pubDate>Fri, 04 Mar 2011 19:06:24 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19961@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Yes, you append :value to the end of the form field variable.&#60;/p&#62;
&#60;p&#62;So instead of:&#60;/p&#62;
&#60;p&#62;{Q1:1}&#60;/p&#62;
&#60;p&#62;You would use:&#60;/p&#62;
&#60;p&#62;{Q1:1:value}
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DrDavid on "Use GF for Self-Assessment type quiz?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz#post-19960</link>
			<pubDate>Fri, 04 Mar 2011 18:58:21 +0000</pubDate>
			<dc:creator>DrDavid</dc:creator>
			<guid isPermaLink="false">19960@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;One other question; is there any way to use to pass, using the querystring, the 'value' (as opposed to the choice) in a multiple-choice field? i.e. {Q1:1} returns the choice, not the value. I'd like it to return the value, if possible?&#60;/p&#62;
&#60;p&#62;David
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Use GF for Self-Assessment type quiz?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz#post-19959</link>
			<pubDate>Fri, 04 Mar 2011 18:56:37 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">19959@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Not without custom code.  Scoring/Grading isn't currently a built in feature.  You would have to write custom code to handle this and then store the score/etc. in a hidden field after doing the calculation.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DrDavid on "Use GF for Self-Assessment type quiz?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/use-gf-for-self-assessment-type-quiz#post-19956</link>
			<pubDate>Fri, 04 Mar 2011 18:40:12 +0000</pubDate>
			<dc:creator>DrDavid</dc:creator>
			<guid isPermaLink="false">19956@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'd like to create a quiz where each 'answer' is worth a certain amount of points. So, basically something like:&#60;/p&#62;
&#60;p&#62;Q1&#60;br /&#62;
Answer 'A' = 3 points&#60;br /&#62;
Answer 'B' = 2 points&#60;/p&#62;
&#60;p&#62;etc..&#60;/p&#62;
&#60;p&#62;Then, on submission, the forms notification screen shows that they got 'x' points (add up each question's value) and show something like, &#34;if you got 0-5 points, you're this, 6-9 you're that, etc..&#34;&#60;/p&#62;
&#60;p&#62;Is there any way to make GF do this? :)&#60;/p&#62;
&#60;p&#62;Thanks!&#60;/p&#62;
&#60;p&#62;David
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
