Copy link to clipboard
Copied
Hi
We're using Captivate to pull together a set of work instructions to promote best practice/consistent output. A couple of the activities point to updating to customers using a templated response, it would be great if we could have a button within Captivate that puts the template text into clipboard so they can paste into the case. Is this possible?
Alternatively, is it possible to output to SWF but have the text as something that can be highlighted/copied by the user?
Many Thanks
Copy link to clipboard
Copied
Hi there
I know it's possible to achieve if you use JavaScript. I've done it myself on many occasions. While I don't have the code at my fingertips at the moment, you should be able to find something using Google.
Cheers... Rick ![]()
Copy link to clipboard
Copied
Hi there- I agree with Rick, although I've never created it myself, I have seen that function in a course.
You can not highlight text in a SWF file. Another option would be to create a button that opens up a PDF form/file. Then they can copy and paste using the opened PDF file. Hope this helps!
Take care!
Copy link to clipboard
Copied
Hi All
Thanks for your feedback. Found lots of references in other websites to Javascript that puts strings into clipboard, spend a few hours but just couldn’t get it working. Bradley’s advice below is a good solid work around.
Whilst searching I also found another option I thought I would share. It involves using a text_entry_box, which is not visible by default and linking to a button which reveals it. This has limited text formatting options (no line breaks etc…), but you can wrap the text using scroll bar and users can select/copy the text in the output (although also delete it). I like this option as the text I need is simple and keeps the user in the e-learn.
If anybody does have more detailed advice on the JavaScript though, would love to hear from you.
Many Thanks
Copy link to clipboard
Copied
I think that if you wanted to copy text to the clipboard you would need to access the accessibility tag to get the actual text.
You can click on specific elements in the browser with the development tools open and select the elements. You can then see the tags and then accessibility element to target.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more