As I explained in this question on the Community Forum, I'd like to be able to use multiple ListPages modules with random ordering on a single page so I can create 2 lists in the same random order, but display different data sets from the pages being listed.
My use case is that I want to create tests by pulling random questions from the entire pool of questions and create a test with just questions and then create a separate answer key for the questions listed on the test in the first ListPages module.
I don't know how the random function works, but if we had a way to indicate that we want to use the same "seed" for each ListPages module on the page, it would allow me to do this.
Timothy Foster came up with a very clever work-around for me to accomplish what I was looking for. It involves a clever use of hidden fields in a dataform to construct a css module that is later used to display questions randomly.
So now I have 2 ListPages modules that list all of my questions (one with answers and one without) with style="display: none;" and then a 3rd ListPages module that constructs the css modules to randomly select 10 questions and apply style="display: block;" to make the questions visible.
You can see it in action here.
The template page with dataform is here.
Even though my wish is resolved, I hope you don't reject this because I think it would be useful for others if they could use a feature like this in a less complicated way.
Community Admin