How to let the users upload a document and set a field to a specific value?

I'm working on an event management site. I'd like to have a button on each event that opens a window to a list of documents that are related to that event. In order to do that, I'd like to have a button where the users can upload documents and where the EventID field is set to the ID of the current event. I planned to do this with JavaScript. The problem is that first the users have to go through the Upload document page and then enter the values on a new page. I don't know how to get the ID value from the event page to the page where the EventID is  entered. I can't use C# code for this project.
kasperEHAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

MontoyaProcess Improvement MgrCommented:
Have you considered using document sets?

With document sets, in case you don't know, you can provide templates for, let's say 5 different required documents:

checklist.doc
seatingchart.xls
contactlist.doc

etc..

Each record will require these documents, and each document is assigned to that record.  (just a thought)
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kasperEHAuthor Commented:
It might be a solution, but how can I make sure that the document set gets a name equal to the ID of the event? Otherwise, I can't create a button to link to this document set. I could pass the value via the URL with JavaScript, but I can't seem to grab the URL, it's only in the ribbon and you can't right-click to Open Link in New Tab.
0
MontoyaProcess Improvement MgrCommented:
In any scenario, you can add metadata to the documents through workflows, though I have not tested that specific scenario from an attached document set.

The thing is that, with the document set, all those docs are part of the record. Are you saying you need to 'tag' the documents anyway?

That I'd have to test.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

kasperEHAuthor Commented:
The requirement is to have a button from the page with the details of the event to view a list of documents related to the event, say an agenda, a white paper and directions (3 documents in this example). So I want to create an automatic link between the two. If I ask the users to manually create a document set then I don't know what it will be called and can't create a button to link to it.
0
MontoyaProcess Improvement MgrCommented:
That's not quite how document set works. You create a new record, the new record requires your document set. All documents are related by the new record you created. Does that make sense?
0
MontoyaProcess Improvement MgrCommented:
look here: http://office.microsoft.com/en-us/sharepoint-server-help/introduction-to-document-sets-HA101782466.aspx

As you can see, the documents that are created as part of the document set can all have shared metada, so they will all be related, and they are further related because they are all part of the same record. So if you click on one record, the attached documents will always be there.
0
kasperEHAuthor Commented:
Thank you very much for your solution that could work fine in a different scenario. I have however chosen a solution where  a folder is created automatically with JavaScript:
http://www.c-sharpcorner.com/UploadFile/0e18a8/create-a-folder-in-document-library-in-sharepoint-2013-using/

Then I can link to that folder from the event item.
0
kasperEHAuthor Commented:
It works fine in SharePoint 2010 too
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.