Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Copy Text Using A Button

New Here ,
Feb 24, 2017 Feb 24, 2017

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

1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Feb 24, 2017 Feb 24, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 24, 2017 Feb 24, 2017

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 25, 2017 Feb 25, 2017

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Feb 25, 2017 Feb 25, 2017
LATEST

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources