function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
tggagnetggagne 

How to paste from the clipboard into VF?

My client's application has a table that users would love to copy and paste part of an Excel spreadsheet into.

 

Is anyone doing that or something similar in VF?

sfdcfoxsfdcfox

In theory, you can use a Rich Text Area or a Text Area that users can copy-paste into. The former can be parsed with some XmlStreamReader functionality, while the latter can be easily manipulated with some tab-delimited processing code. The only real limitations here is your imagination (and governor limits). You can further stretch your Visualforce power by mixing in some JavaScript.