Quantcast
Viewing all articles
Browse latest Browse all 6517

New Post: Possible to use SPLookupAddNew to upload a document?

The easiest thing to do would be to add a button onto the form that opens the upload dialog to the library. Once the user is finished uploading and tagging the document, a callback can be fired (dialogReturnValueCallback). That callback could then use SPServices to find the latest document uploaded by the current user and populate a control on the original form. I've done this a few times and it works great.

There is one drawback to this though... If the user has overwrite existing files selected, the created date of the existing file will not be updated and you'll get inconsistent results. It's easy to toggle that off and disable it altogether though.

Cheers,
Matthew

Viewing all articles
Browse latest Browse all 6517

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>