How to click a button to copy data to clipboard in Appian
Discussion posts and replies are publicly visible
a!richTextDisplayField( labelPosition: "COLLAPSED", value: { a!richTextItem( text: ri!textToCopy, style: "STRONG", size: "MEDIUM" ), char(9), a!richTextIcon( icon: "clone-solid", size: "MEDIUM", link: 'type!{http://www.appian.com/ae/types/2009}CopyToClipboardLink'( textToCopy: ri!textToCopy ), linkStyle: "STANDALONE" ) } )
I found this a random post on Linkedin where a user posted this similar code.
Try this !
Myself and another user dug this up in the Appian Subreddit a year or so ago - pretty useful but also super "not officially supported" - I hadn't posted about it here or other public places, partly because all Appian would need to do is change the back-end function name to effectively re-hide it from all of us again (or do something else to prevent it from being arbitrarily called in SAIL code like it currently can be).
Making this an "official" feature (come on a!CopyToClipboardLink() guys! it would be easy!) is on my "official" product backlog request list that I've sent to certain powers-that-be, though as always until I hear anything official I assume it's safely being ignored, LOL.