JoyFreak
Well-known member
I'm trying to work out how to use the built-in copy to clipboard feature.
So I've created a custom user field where by it displays the value in a tooltip. Like so:
Value display HTML:
	
	
	
		
Wrapper display HTML:
	
	
	
		
I'm trying to get it so when a user clicks on the icon, it would copy the value to clipboard. Can someone please advise me on how to achieve this?
Many thanks.
				
			So I've created a custom user field where by it displays the value in a tooltip. Like so:
Value display HTML:
		Code:
	
	<img src="/styles/joyfreak/nintendo.png" data-xf-init="tooltip" title="{$value}" style="margin-bottom: -2px;">
	Wrapper display HTML:
		Code:
	
	<span style="display: inline-block; margin-right: 6px;">{$value}</span>
	I'm trying to get it so when a user clicks on the icon, it would copy the value to clipboard. Can someone please advise me on how to achieve this?
Many thanks.