Display screen upon re-entering a survey

Creating questions and survey logic with Dimensions scripting.

Display screen upon re-entering a survey

Postby mlamias » Thu Jan 14, 2010 3:04 pm

Hello, Dimensions Users,

I have a bit of an unusual request from a client to implement a "splash screen" each time a user logs into their survey. We are using sample management to authenticate users. When a user logs into the survey, the client wants a screen to be displayed showing information pulled from the sample management table. This is easy enough when the user logs into the survey the first time. However, the client wants the user to see just this one "splash screen" every time they access the survey -- even if the user stopped mid-way through the survey -- and then resume where they left off in the survey when they previously had accessed it. So, to provide a more concrete example, this is how the survey should function:

1. User X authenticates into the survey the first time and they see the splash screen with some detailed pulled from the sample management table. Then user clicks the next button and completes questions 1 - questions 6. He then times-out or stops the survey on Question 7.
2. A few days later User X authenticates into the survey and again is initially presented with the same splash screen. He clicks next and resumes where he left off previously -- at question 7.

Does anyone have a good suggestion of how to make this work? I can't seem to come up with any sort of creative solution short of using some other program like .NET to authenticate the user and display the splash screen and then pass the authentication credentials onto mrInterview.

Thanks!
mlamias
 
Posts: 6
Joined: Sat Jul 19, 2008 7:06 pm
Location: Atlanta

Re: Display screen upon re-entering a survey

Postby fewtrell » Tue Jan 19, 2010 5:48 am

Hi,
I havent tested this for your particular set-up yet - but you could try setting up a seperate "Flash Screen" survey.
The respondent would have a link for / log-in into this survey - rather than your "Main" survey.
The "Flash Screen" survey could use the same sample management info as your "Main" survey - which it would then redirect the user into ... e.g. in the "Flash Screen" survey Routing:

xuserid=IOM.SampleRecord.Item["Id"]
IOM.Texts.InterviewStopped = "<br/><br/><big><font color=""blue""><b>Redirecting...</b></font></big><br/><br/><meta http-equiv=""refresh"" content=""0;url=https://mr01.YOUR SERVER.net/mrIWeb/mrIWeb.dll?I.Project=MAINSURVEY&amp;Id=" + ctext(xuserid.Response) + """/>"
IOM.(Signals.sigStopped)

Once redirected into your "Main" survey - it should return the respondents to their last answered questions.

Hope this helps?
fewtrell
 
Posts: 17
Joined: Fri Oct 03, 2008 3:52 pm

Re: Display screen upon re-entering a survey

Postby ivelin.hristov » Wed Jan 20, 2010 6:51 am

Hello,

If i am getting this straight what you are trying to achieve is: authentication page -> intro page ->rest of survey (for each restart)

You can simply put up the intro screen as a first screen and show it for every restart.
Below is not the simplest example, but I think that it can be appropreate to show different screens first time survey is taken and once it is quit and continued.

Code will look something like this:
Code: Select all
If MRK_SOMETHING.info.OffpathResponse = null then
     MRK_SOMETHING = {SOMETHING}
     intro.label.inserts["ins"] = "This is the first time survey is taken"
     intro.show()
else
     MRK_SOMETHING = MRK_SOMETHING.info.OffpathResponse
     intro.label.inserts["ins"] = "Survey has been restarted before(Welcome back?!)"
     intro.show()
End if

'Questionnaire starts here'


Let me know if that helps.

Thanks,
Ivelin
<font color='red'><b>{ins}</b></font>
Signature.label.inserts["ins"]= "Nerd Joke!"
post.show()
ivelin.hristov
 
Posts: 27
Joined: Mon Aug 04, 2008 5:56 am

Re: Display screen upon re-entering a survey

Postby fewtrell » Mon Jan 25, 2010 5:08 am

Will using this latter "offpath" solution not also interrupt the re-population of previously entered interview (up to the DataCollection.EndQuestion)?
If so then upon returning to the survey - after viewing the "Flash screen" - the respondent would then have to step through all of their previously answered questions ...
fewtrell
 
Posts: 17
Joined: Fri Oct 03, 2008 3:52 pm

Re: Display screen upon re-entering a survey

Postby ivelin.hristov » Wed Jan 27, 2010 9:27 am

Hello Again,

Only questions showed/asked in the "IF" statements from my previous post will be constantly repeated:

Upon Re-entry:
Intro screen -> last seen screen(DataCollection.EndQuestion)

Thanks,
Ivelin
<font color='red'><b>{ins}</b></font>
Signature.label.inserts["ins"]= "Nerd Joke!"
post.show()
ivelin.hristov
 
Posts: 27
Joined: Mon Aug 04, 2008 5:56 am


Return to Survey Scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron