Using InfoPath 2007 to create exams

B

biohazzard

Hello! I have created InfoPath exams for use in MOSS 2007. I would like to
have the user submit the form, then have the correct answers show - with
incorrect marked, or at least show the correct answers. There is probably an
easy way to do this...please help!

Signed...frustrated and exasperated!
 
S

S.Y.M. Wong-A-Ton

Have you already looked into using conditional formatting? With conditional
formatting you can add sections (these would contain the answers) to your
form and show/hide them based on conditions.

If it is critical that the users should not be able to cheat (InfoPath forms
can be downloaded and viewed in Notepad), you may want to create a web
service to submit the form to, which would then analyze the answers and
return the results. It will cost more time to build than option 1, though.
 
B

biohazzard

Thanks for the tip, I will try that!

S.Y.M. Wong-A-Ton said:
Have you already looked into using conditional formatting? With conditional
formatting you can add sections (these would contain the answers) to your
form and show/hide them based on conditions.

If it is critical that the users should not be able to cheat (InfoPath forms
can be downloaded and viewed in Notepad), you may want to create a web
service to submit the form to, which would then analyze the answers and
return the results. It will cost more time to build than option 1, though.
 
B

biohazzard

OK, I thought I had it figured out, I used a Submit Button to submit the
form, with a rule to show another view of the form. It worked the first time
except it did not upload the filled out form into the SharePoint Forms
Library I had set it up to go to.

I realized it is an either or for the submit button so I added another
button to switch views. I am trying to figure out how to use conditional
formatting or a rule to only allow the switching of views after form
submission. Is this possible without programming? Thanks in advance!
 
S

S.Y.M. Wong-A-Ton

Add 2 sections and one text field (we'll call it "submitted") to your form
template. You do not need to show the "submitted" field to the user, so
delete it from the view (it will remain in the main Data Source of the form
template). Put the controls that should appear before the form is submitted
on the first section. Put the controls that should appear after the form is
submitted on the second section. Add conditonal formatting on the first
section: Double-click on the section to open its Properties dialog box, click
"Display" tab, click "Conditional Formatting" button. On the Conditional
formatting dialog box, add a condition that says: if "submitted is not
blank", "Hide this control". Do the same for the second section with a
condition that says: if "submitted is blank", "Hide this control". Enable the
form to be submitted. Add a rule to submit the form. This rule must have two
actions: "Set a field's value: submitted = "true"" and "Submit using a data
connection: <Your SharePoint submit connection>".

When the form opens, the first section will be shown and the second section
hidden.
When the form is submitted, the "submitted" field will be filled with the
text "true", the first section will be hidden, and the second section will be
shown. No programming required!
 
B

biohazzard

Ok, working your suggestion...new wrinkle tho. I can submit from my PC at
home, but at work (Army installation) I cannot submit. Is there a way to do a
"submit" or some other function that would force the student to "lock in the
answers" before a view showing the correct answers can be displayed!? I thank
you for for rapid responses - any chance you could come work here for little
or no pay, long hours and not much support?
 
S

S.Y.M. Wong-A-Ton

It does not sound like you're having much fun... If you create a form
template with just a submit button (no extra rules or anything), are you able
to submit it? It might be a security/access issue you're having at work.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top