Change state of an object based on Freeform Pick Many response

May 16, 2014

I would like to change the state of a shape to Normal if the response to a Freeform Pick Many response includes a particular value.

I'm building a tool that helps a user build a Discovery Map. The tool walks them through providing up to 8 pains on each of four levels, ranging from Tactical at the bottom to Goal at the top. The tool also queries them on the cause and effect relationships between pains in adjacent levels. I can output the results of both of these data sets using the Print Results function and a JavaScript method of outputting the values of variables. With this information, manual manipulation is needed to build a visual representation of the Discovery Map. I would prefer to build the visual automatically so the user can see it, verify it, and pass it back to me.

One method that occurred to me to have Storyline build the visual representation for me automatically is to create a default state slide that shows all of the "pains" inputs arranged in their four levels with arrows connecting each pain to all 8 of the pains on the level above it. I would set the initial state of all of the arrows to Hidden. Then I would add a trigger for each arrow to change state to Normal if the value of the Freeform Pick Many question that relates to that connection between the two pains includes the name of the text box containing the connected pain on the level above.

In order to do this, I would need to be able to:

1) Reference the variables that contain the responses to the Freeform Pick Many questions

2) Apply a conditional statement that can evaluate a portion of the value of the response (since there could be up to 7 other text boxes named in the response)

Is this possible?

If not, is there a more elegant (or more importantly, supported) way to achieve what I am trying to do?

1 Reply
Ashley Terwilliger-Pollard

Hi Bryan and welcome to Heroes!

What are you using as the freeform pick many elements? The score variable for the question would not be accessible, but you could create your own variable that is adjusted say when the state of a particular pick many element is selected. Based on the value of that custom variable or even the selected state of your pick many objects, that could adjust the state for your map. It sounds like the user may also be entering information in - such as text entry? If so, each text entry answer is assigned to a particular variable (such as TextEntry1, TextEntry2, etc.) and you could set up a trigger with the conditional statement associated with the value of that variable. So it sounds like based on your set up, what you'd like to do is entirely possible - the specifics of which will depend on your file. 

This discussion is closed. You can start a new discussion or contact Articulate Support.