SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a DVWP that is filtered by a query string parameter. When the user clicks on Add New Item, I would like the column that the DVWP filters on to auto fill with the same value that the DVWP page is currently filering on. Also, I would like that column to be invisible so that the user cannot change it. I am not sure how to pass the query string value to NewForm.aspx when the user clicks on Add New Item.

share|improve this question
up vote 5 down vote accepted

You could hide the generated "Add New Item" link and create your own with the query string added to the URL.

share|improve this answer
Thank you James. I couldn't see the link on the page in SPD. How do I make it invisible? – Anonymous Aug 19 '10 at 21:59
Somehwere in the properties for the DVWP I believe. – James Love Aug 19 '10 at 22:32
What do you do to hide the elements? I can't seem to get a handle on the "New Item" button in the ribbon. – bgmCoder Nov 21 '15 at 20:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.