Does anyone know the action scripts for this in Angel?

I know that Angel system can automatically group students into teams based on their response to a survey but don't know how to write the action scripts. Also, looks like I can only add action scripts at the survey level but not question level.

Does anyone know the action scripts? Thanks.

For example, I want the system to assign students choosing answer A to team one and those choosing answer B to team two.

Q: What do you prefer for your supper tonight?
A. pasta
B. pizza
C. soup
D. nothing

Comments

Jennifer Mullen's picture

Syntax

See the following image. Replace the numeral in Q1 with the appropriate question number, "pizza" with the response value selected (e.g. pasta, pizza, soup, or nothing), and "The Pizza Team" with the appropriate team name.

You will need to create one action for each team.

Mary Janzen's picture

Image not showing up

Didn't come through.

Jennifer Mullen's picture

re: Image not showing up

It's there for me. Here it is again:

Sorry for the additional comment. It appears comments can't be edited once they have been replied to.

Qi Dunsworth's picture

Pre-existing teams or new teams?

It doesn't work for me, and I don't know what I did wrong. Do all the teams have to be created before launching the quiz? Should the instructor log out and log back on again to see the change? This is a really neat tool, would love to get it work! Thanks! - Qi

Jennifer Mullen's picture

HTML content in responses must be included

In case anyone is curious or runs into the same issue, the response value provided in the action must match the response specified in the quiz/survey question exactly—including any HTML content used to include images or for formatting.

If your response is specified as <img src="myimg.gif" /><b>pizza</b>, then your response value in the action must also be <img src="myimg.gif" /><b>pizza</b> and not pizza.

Qi Dunsworth's picture

Thanks, Jennifer!

Here is the answer: the response value specified in the action must be exactly the same as the one in the quiz, including html tags. Thank you Jennifer for pointing it out! - Qi

Jennifer Mullen's picture

You're welcome!

You're welcome! Looks like we had the same thought about updating the forum at about the same time!

Jennifer Mullen's picture

Re: Pre-existing teams or new teams?

The teams don't have to be created beforehand.

Can you tell me where to find your quiz? It would be easiest to figure out if I could look at it. You can email the info to me if you like.

Thank you!

Hey, it works! I figured out the string $Q1:RESPONSE$ but didn't know that I should treat it as a criteria but not a variable. Thanks!

Syndicate content