<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Creating a one round quiz in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/109453.aspx</link><pubDate>Thu, 09 Feb 2017 15:55:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109453</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109453.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109453</wfw:commentRss><description>Any chance you can attach a copy of your form to a reply under the options tab? I&amp;#39;m wondering if this is a simple matter of needing a filter on your data when you look for the answer....</description></item><item><title>Creating a one round quiz in InfoPath</title><link>https://www.infopathdev.com:443/forums/thread/109450.aspx</link><pubDate>Thu, 09 Feb 2017 07:32:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:109450</guid><dc:creator>plutoo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/109450.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=109450</wfw:commentRss><description>&lt;p&gt;&lt;span style="mso-ansi-language:DE;"&gt;&lt;font face="Calibri" size="3"&gt;Hello everyone,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;I am a newbie to sharepoint/infopath. Using the search function didn&amp;#39;t help unfortunately.&amp;nbsp;I have the following
problem. What I am basically trying to do is create a multiple choice, one
round “quiz” through InfoPath and SharePoint. I have four option buttons, each
with a different anwser option, and a submit button.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;What I have accomplished so far is the following:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;ul style="list-style-type:disc;direction:ltr;"&gt;&lt;li style="font-style:normal;font-weight:normal;"&gt;&lt;p style="font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;The Question is retrieved from a SP list (Column
“Question”)&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;The content for each Option (Columns “Option A”,
“Option B”, “Option C”, “Option D”) in the buttons is retrieved from the same
SP list where the question came from&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;There is another column with the correct answer
(not displayed in the form), where the SP admin entering the question and
answers enters the exact same answer as the correct Option&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;Whenever a user clicks on an option, a text
field says “your current choice is A/B/C/D” &lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;The user then has to hit a submit button&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l0 level1 lfo1;"&gt;The answers are posted to a separate SP list
once the form is submitted&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:10pt;mso-list:l0 level1 lfo1;"&gt;The correct answer is displayed once the user
hits the submit button.&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;













&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;So far so good. However, what I can’t do is actually
generate a message “your answer was correct/false”. What I tried was the
following:&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;div style="font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level1 lfo2;"&gt;Created a text field where “Correct/false” should be displayed&lt;/div&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level1 lfo2;"&gt;Once the user hits the submit button, there is a
rule to check if the chosen answer (Option A etc.) matches the correct answer
(which was submitted by the admin in the SP list), and when that is the case,
it should display “correct” in the text field.&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level1 lfo2;"&gt;However, this doesn’t work: I think (not sure
though) InfoPath does not look at the value of the field, but at the actual
field.&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level1 lfo2;"&gt;To illustrate:&lt;/p&gt;&lt;ul style="list-style-type:circle;"&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level2 lfo2;mso-add-space:auto;"&gt;Option A: Car&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level2 lfo2;mso-add-space:auto;"&gt;Correct Answer (entered in a separate column, not displayed in the form (but it is connected to the form as all other Options!)):
Car&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:0pt;mso-list:l2 level2 lfo2;mso-add-space:auto;"&gt;Rule: If&amp;nbsp;Chosen answer (Option A)&amp;nbsp;= Correct Answer, then set
textfield = “correct”&lt;/p&gt;&lt;/li&gt;&lt;li style="font-size:11pt;font-style:normal;font-weight:normal;"&gt;&lt;p style="font-size:11pt;font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:10pt;mso-list:l2 level2 lfo2;mso-add-space:auto;"&gt;But while the content (“Car”) is equal, they are
not the same fields &lt;span style="font-family:Wingdings;mso-ascii-font-family:Calibri;mso-hansi-font-family:Calibri;mso-ascii-theme-font:minor-latin;mso-hansi-theme-font:minor-latin;mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;&lt;span style="mso-char-type:symbol;mso-symbol-font-family:Wingdings;"&gt;à&lt;/span&gt;&lt;/span&gt;
So they don’t match&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;















&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;A solution would be maybe some kind of formula that extracts
the values of the SP field, but I havent found such formula.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;ul style="list-style-type:disc;direction:ltr;"&gt;&lt;li style="font-style:normal;font-weight:normal;"&gt;&lt;p style="font-style:normal;font-weight:normal;margin-top:0cm;margin-bottom:10pt;mso-list:l1 level1 lfo3;mso-add-space:auto;"&gt;If Value(Option A) = Value (Correct Answer) then
set textfield =”Correct”&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;I hope this was not too confusing. I would greatly
appreciate any help. Thank you so much!&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;Best Regards&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;&lt;p style="margin:0cm 0cm 10pt;"&gt;&lt;font face="Calibri" size="3"&gt;&amp;nbsp;&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font face="Times New Roman" size="3"&gt;

&lt;/font&gt;&lt;/p&gt;</description></item></channel></rss>