Featured Categories
-
Lectora®
Lectora® is the most trusted authoring tool in the world. Rock out your creativity! Author courses any way you like. Lectora adheres to best practices for Accessibility and Web Content Accessibility Guidelines (WCAG), offers responsive authoring for eLearning, and publishes to any LMS (Learning Management System).
-
CenarioVR®
Experience virtual reality through CenarioVR®, our training and virtual reality (VR) authoring software that allows you to create immersive learning in minutes! No coding required!
-
Rockstar Learning Platform®
Our Rockstar Learning Platform® has all the features you’ll love. Help your employees be better at their jobs, more valuable to your company, and most effective in servicing your customers.
-
The Training Arcade®
Level up your learner engagement with the Training Arcade®! The Training Arcade is a library of fun, mobile-ready, casual games that can be rapidly customized with your content to create effective gaming!
-
ELB Learning Content
Did you know that our AssetLibrary™ has over 120 million engaging, interactive, and awe-inspiring templates and assets to help you become an eLearning Rockstar®?
variable to clipboard

I'm looking for a way to copy the text from an entryfield to the clipboard, and combine it with a little bit of text of my own.
So, someone puts text in entryfield_1, that text gets stored in variable_1, and then with an onMouseClick I want that text and my own text copied to the clipboard, so it can be pasted into a document.
Any way of doing this?
Cheers in advance

Comments
-
wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 702 eLearning ROCKSTAR Admin TeamI've recently done something similar. I'm including an example that has a button and an entry field.
It puts content into the entry field using a Change Contents action, then it runs some JavaScript to copy it to the clipboard.
Hopefully it will be easy to understand, you need to Page Preview or Publish it for it to work.
- Joe
@mbuitenkamp.4316 (see the post below) -
-
wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 702 eLearning ROCKSTAR Admin TeamIt was blank, not sure how that happened.
It also needed some updates, so it's a good thing. It will work on either Desktop or Online now.
Thanks
Joe -
awesome!! I got it to work in my document! Thank you!
but... (of course there's a but), I need the entryfield to be multiline since we're asking users to create a list.
that isn't a problem, until I paste the contents from the clipboard and the neat little list just ends up as one very long single line.
so this:
item 1
item 2
item 3
becomes this:
item 1item 2item 3
Can that be fixed??? -
edited to match my document, so you can see what's going on
-
-
okay, last question:
it works when the entryfield is single line, but it doesn't work when the entryfield is multiline
The variable gets set into the entryfield for copy, but in multiline the text doesn't get selected, and so it doesn't get copied.
Which is a shame because I really do need a multiline solution.
Any idea how to fix this?
tia -
wheels Community Member, Administrator, Moderator, Rockstar Manager Posts: 702 eLearning ROCKSTAR Admin TeamHi Tia,
That's great you are figuring it out!
You need to change the execute copy script to use 'textarea' instead of 'input' see attachment
Joe -
Categories
- 35.9K All Categories
- 110 ✫ Announcements
- 33.2K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 27 ELB Learning Content
- 27 ELB Learning Content Discussions
- 346 CenarioVR®
- 205 CenarioVR Discussions
- 141 CenarioVR Feature Requests
- 44 Rockstar Learning Platform®
- 41 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 48 ReviewLink®
- 48 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 938 All Things eLearning
- 39 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products