November Happy Hour will be moved to Thursday December 5th.

xForm quiz with right/wrong answers

Vote:
 

Hi,

Im using EpiServer for the first time (6 R2) and would like to find out if xForms can apply values to radio buttons. I will be creating quiz with about 4 questions and multiple choice answers. If a use gets xx% correct they will be send an email.

Has anyone done this before?

Any advice / tips would great?

Cheers

 

#56791
Feb 09, 2012 2:32
Vote:
 

Hey damshaw,

I haven't done this before but have done alot of Xforms development as of late.  This can be done and you will need to hook into the BeforeSubmitPostedData/ AfterSubmitPostedDataEvent to check the answers and there you can decide whether to send the email or return.  Totally up to you and how you are going to handle your data.  These events are located by default in the global asax file. 

You will just have to loop the controls to retrieve your values

foreach (Control control in tempControls)
            {
                if (control is Input)
                {
                    var inputControl = (Input)control;
                 }
            }

   Hope this helps.

#56834
Feb 12, 2012 22:10
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.