I have a piece of Javascript that brings the learner's User ID (which is a number) into Articulate and saves it as a variable 'UserID'. I have a list of 700 user IDs that need to see a different menu on taking my course.
Can anyone see a way to write a single trigger to identify these 700 accounts?
I can get it to identify them individually with 'If UserID is equal to 12345678, set variable Group1 to true', but I can't have a separate trigger for each user ID because there are too many. Is there a way to separate the numbers within the same trigger? Ie 'If UserID is equal to 12345678;12345679;112345671, set variable Group1 to true'?
Ideally I need to be able to paste the numbers from Excel or Word into a single field....
2 Replies
here a small Javascript, which can do this
Group = -1 -> not yet searched
Group = 0 -> not found
Group > 0 -> group number
https://360.articulate.com/review/content/aaf27bda-178d-411f-81cd-6d4d96a41724/review
Fantastic, thanks!!!