Picture of Matt Leathes
Re: ASADA e-learning question: persistent variables
by Matt Leathes - Monday, 14 November 2016, 8:12 PM
 

Hi Stephen

I think this particular bit of ASADA was by our colleagues in Kineo Pacific... So they might be best placed to answer how exactly this was done.

There's a couple of different ways you could do something like this. Either directly in the component - see our update to confidenceSlider (specifically the function _setupLinkedModel) to see how you can pull values from one instance of a component into another - or by creating an extension that acts as the 'man in the middle'.

Given something like the above I'd be inclined to create a custom slider component that had logic along the lines of 'for each option chosen by the user in component with id x, display a slider with a heading whose text is the label of the option the user chose'...