Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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". Thank you for your help!

share|improve this question

1 Answer 1

up vote 4 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

Your Answer

 
discard

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