Forum Discussion
Matching drag and drop activity
JoC62 a fix that might work for you in your second problem in your version, in the drag and drop options (Format tab > Drag and Drop), tick "Return item to start point if dropped outside a target” Combine this with "Only one item per drop target"
This means a slot can't be double-occupied so the second item bounces back to its origin. It's not a true swap (the user has to consciously drag the first item away first), but it prevents the "sitting behind" problem. You could do it with triggers but that would be a lot of triggers 😬. If I were doing it I’d use Javascript
Thank you! That does solve part of the problem. I'm not confident using Javascript unfortunately as that would definitely be the easiest solution.
- DShaw11 hours agoCommunity Member
JoC62 I've created and ran a script in Rise that you should be able to use to build what you want; as long as I understood your requirement exactly! Here's what to do:
In the builder
- Design your activity (add items, set colours, sizes, etc.)
- Click Copy HTML button
Create the HTML file
- Open Notepad (Windows) or TextEdit (Mac)
- On Mac, also go to Format → Make Plain Text (Cmd+Shift+T) so it doesn't save as RTF
- Press Ctrl+V (or Cmd+V on Mac) to paste the HTML
- Save the file:
- File → Save As
- Filename: index.html (this exact name matters — Storyline looks for it)
- Save as type dropdown: change from "Text Documents" to "All Files"
- Save it somewhere you'll find it — e.g. Desktop
Put it in a folder
- Create a new folder, e.g. Desktop/dragdrop-activity
- Move your index.html into that folder
So you should have: Desktop/dragdrop-activity/index.html
Insert into Storyline
- Open Storyline and go to the slide where you want the activity
- Top ribbon: Insert tab → click Web Object
- In the Address field, click the small folder icon at the right
- Browse to and select the FOLDER (dragdrop-activity) — not the file itself
- In the dialog:
- "Display in slide" — selected (don't pick "new browser window")
- Click OK
- A grey placeholder rectangle appears on the slide. Drag its corners to size and position it where you want the activity to show
You won't be able to view the interaction in the web object until you publish
https://share.articulate.com/i2cyT-u4hHgZUzGx7mnAW
- JoC6210 hours agoCommunity Member
That's so kind of you, thank you! I tried to publish it but it came up with this message. Any idea what I have done wrong?
Related Content
- 11 months ago
- 1 year ago
- 1 year ago