?
Solved

pass value to new sharepoint list entry

Posted on 2011-10-13
1
Medium Priority
?
476 Views
Last Modified: 2012-05-12
Dear Experts,

I'm running SharePoint 2010, in here I have a list. In this list I have a choice column (dropdown).Is it possible to devise a URL that would

1) Launch a new list item entry form?

I have got this one done, like this:

http://servername/Lists/Project%20Tasks1/NewForm.aspx?RootFolder=

2) I want a a value pre-populated in the mew item form for the choice list, i.e. in column "Picklist" I want "Value1" selected.


I know you can assign a default value to a column, however I need the default value to remain blank but have different URL's that start a new item with either Value1 or Value2 or.... pre-populated. So its kinda a template entry.

Appreciate you thoughts and solutions!
0
Comment
Question by:hendrkle
1 Comment
 
LVL 9

Accepted Solution

by:
Ivan Padabed earned 2000 total points
ID: 36961551
2nd part could be done by javascript only. you can do it in SharePoint Designer or in HTML Form web part: for instance, like here: http://blog-sharepoint.blogspot.com/2010/08/set-sharepoint-list-form-web-part-field.html
you also need to pass additional parameter with your url to take default value from. Hope you know javascript enough or at least you know people that know javascript :)
0

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When installing SharePoint 2010 RTM I came across a strange error, I was getting timeouts during the installation. I searched the web and found the best solution to be found here (http://social.msdn.microsoft.com/Forums/en-US/sharepoint2010genera…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
As many of you are aware about Scanpst.exe utility which is owned by Microsoft itself to repair inaccessible or damaged PST files, but the question is do you really think Scanpst.exe is capable to repair all sorts of PST related corruption issues?
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question