Forum Discussion
Making text copyable during course
Hi
I want to make a line of text able to be copied (for copy and paste) for the person completing the course, however, when viewing a course, I am unable to select/highlight and copy text. Is there any way to do this?
Thanks
Anne
24 Replies
- TH-bf52b1b3-f6fCommunity Member
Ich got a solution, that works with at least with shortcut Strg + C. Because Storyline deactivates right mouse click.
The solution deletes the input of the first inputfield on the slide and then fills it again with text.
So the text is selectable and copyable with Strg + C.
1. Create an input field
2. Create trigger "Excecute Javascript if timeline starts"
3. Fill in Javascript and replace the variablename that is connected to the input field.
var player = GetPlayer();
// Setzt das Eingabefeld zunächst auf leer
player.SetVar('YOUR-VARIABLE-NAME-BEHIND-INPUTFIELD', '');
// Kurzer Delay, damit das Feld wirklich zurückgesetzt wird
setTimeout(function(){
player.SetVar('VARIABLE-NAME-BEHIND-INPUTFIELD', 'YOUR-COPYABLE-TEXT-HERE'');
}, 100);
Related Content
- 7 months ago