It’s tough for me to write an article. If someone wants to
know something, I get an opportunity to write. Thanks Radhwen
Maknin, for asking me
to show, “how to create a send button and how to send files with that send
button?”
There are different ways to create a send button in
SharePoint.
- You can add a content editor web part where you can add a send button and perform your desired operation using javascript. You can create/update/delete list items using javascript.
- Using SharePoint Designer: When you add a list/app in your site, you get an input form where there is a save button by default. You can change the nobr:text using javascript or you can change the Display name of the button using SharePoint designer. I’m going to show this second one today.
- Using Visual Studio: You can add a visual web part using visual studio.
Let’s see, how to create a send button.
- Create a list (say SendFile) where there should be a destination column. I’m going to add a people picker type column here. Actually I’ll add two people picker type column, one is for source and another one for destination. I’ll add another field named File Description.
- Now, open the new form of this list in SharePoint Designer. You know that, the design view has been removed from the SharePoint Designer. Only the code view is available here. You have to find out the save button inside the code and change the tag value. If you cannot edit your code, select Advance Mode.
- You have created your “send button”.
- Now, you have to send files to your destination. You can do so, in different ways and I’ll prefer you to use workflows on create an item.
[N.B.: Images will be uploaded if required]