What is the best way to create a list using the drag and drop facility? My users would be typing text in up to 100 free text fields. I will then use a variable reference to create a drag items lists (i.e. each referenced with its own %TextEntrynnn% variable). What I'm interested in is to collect the list of the dropped items, hence I would need to be able to reference the dropped items (something like %result.droppeditem01%?)
var player = GetPlayer(); var List = player.GetVar("yourVar"); var addOn = player.GetVar("yourVar2"); var concate = List + Addon +"\n" ; player.SetVar("yourVar", concate);
You could execute when object dropped, the only problem you have is if the object is taken out again.
2 Replies
You can concatenate a list using javascript
You could execute when object dropped, the only problem you have is if the object is taken out again.
Thank you Phil, that should work.
This discussion is closed. You can start a new discussion or contact Articulate Support.