Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 22nd, 2024, 4:35 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Remembering the position of random objects upon page return
PostPosted: February 19th, 2014, 12:22 am 
Offline

Joined: October 31st, 2011, 3:21 pm
Posts: 28
Opus: Pro 9.6
OS: Windows 7 Professional 64 bit
System: Intel i7-2600k, 16 GB RAM, Nvidia Quadro 4000
Hello Everyone,

I am currently building a quiz that has it's answers randomized, but I only want them randomized once and to keep that randomization. I am allowing the user to go back and forth between questions until they are ready to submit all their answers. I am using a Shuffle Position action to randomize my answer choices.

I am not very good at scripting, but I know I'll need to use "GetPosition" and "SetPostion" Here is what I am trying to do:

1. Answers get shuffled once
2. GetPosition() of answers
3. Leave page and come back
4. SetPostion() of answers based off their previous positions

I appreciated any help. Thanks ahead of time! I also attached a sample of what I'm working on that is stripped down.


You do not have the required permissions to view the files attached to this post.


For this message zmayor has been thanked by : mackavi


Top
 Profile  
 
 Post subject: Re: Remembering the position of random objects upon page ret
PostPosted: February 19th, 2014, 8:42 am 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
I assume that if you're using the shuffle action then you're not on Opus Pro 7?

If that is the case, under the general tab, for your shuffled objects, use the restore state and position select box.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject: Re: Remembering the position of random objects upon page ret
PostPosted: February 19th, 2014, 6:15 pm 
Offline

Joined: October 31st, 2011, 3:21 pm
Posts: 28
Opus: Pro 9.6
OS: Windows 7 Professional 64 bit
System: Intel i7-2600k, 16 GB RAM, Nvidia Quadro 4000
Thanks Mack! You help put me in the right direction. I added an "If" statement to the page's actions to make the questions only shuffle once and a page variable. It works like a charm now. See attached screenshot.

Attachment:
Q1.PNG


You do not have the required permissions to view the files attached to this post.


For this message zmayor has been thanked by : mackavi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group