SOLVED

JSON for SharePoint List: button for "copy field to clipboard"

%3CLINGO-SUB%20id%3D%22lingo-sub-2282288%22%20slang%3D%22en-US%22%3EJSON%20for%20SharePoint%20List%3A%20button%20for%20%22copy%20field%20to%20clipboard%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2282288%22%20slang%3D%22en-US%22%3E%3CP%3EHi.%3C%2FP%3E%3CP%3ECan%20I%20customize%20column%20formatting%20so%20that%20I%20can%20easily%20get%20a%20%22copy%22%20button%20when%20hovering%20over%20a%20certain%20cell%3F%20Similiar%20to%20the%20hover%20options%20you%20get%20with%20the%20default%20title%20field.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWould%20be%20very%20useful%20for%20fields%20such%20as%20phone%20number%2C%20email%20etc..%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2282288%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ELists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Lists%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2282374%22%20slang%3D%22en-US%22%3ERe%3A%20JSON%20for%20SharePoint%20List%3A%20button%20for%20%22copy%20field%20to%20clipboard%22%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2282374%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F115731%22%20target%3D%22_blank%22%3E%40Tormod%20Solem%20Slupphaug%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20create%20a%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fsharepoint%2Fdev%2Fdeclarative-customization%2Fcolumn-formatting%23custom-cards-on-hover%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ecustom%20hover%20card%3C%2FA%3E%20for%20a%20column%20using%20JSON%20formatting.%20But%20you%20cannot%20provide%20copy%20functionality%20on%20button%20click%20(on%20hover%20card)%20using%20JSON%20formatting.%3C%2FP%3E%3CHR%20%2F%3E%3CP%3EPlease%20click%26nbsp%3B%3CSTRONG%3EMark%20as%20Best%20Response%3C%2FSTRONG%3E%26nbsp%3B%26amp%3B%20%3CSTRONG%3ELike%3C%2FSTRONG%3E%20if%20my%20post%20helped%20you%20to%20solve%20your%20issue.%20This%20will%20help%20others%20to%20find%20the%20correct%20solution%20easily.%20It%20also%20closes%20the%20item.%20If%20the%20post%20was%20useful%20in%20other%20ways%2C%20please%20consider%20giving%20it%20%3CSTRONG%3ELike%3C%2FSTRONG%3E.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Contributor

Hi.

Can I customize column formatting so that I can easily get a "copy" button when hovering over a certain cell? Similiar to the hover options you get with the default title field. 

 

Would be very useful for fields such as phone number, email etc..

 

 

Best regards.

 

1 Reply
best response confirmed by Tormod Solem Slupphaug (Contributor)
Solution

@Tormod Solem Slupphaug 

 

You can create a custom hover card for a column using JSON formatting. But you cannot provide copy functionality on button click (on hover card) using JSON formatting.


Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.