Here's my specific predicament: I have a custom List Display Form that I am editing in SharePoint designer. It has the standard field editing form, and a Web part zone with a custom list Web part in it.
When a user comes to this page, they're arriving here from clicking on an existing item in a list, we'll call it the "Site List." Each site has a number, in this case it's 12345. I have access to this number on this page since it's in the form field for Site #.
The problem occurs when a user adds a new item to the list in the Web part zone. I want to pass along the Site # and fill this number in on the next new list item page (in it's appropriate Site # field of course).
I have everything set to go, from grabbing the site # on the initial List Display Form, to being able to input the number into the correct field on the new custom list item form; I just can't get the number there.
- I can't use session variables (that would've been too easy)
- I can't modify the query string on the custom list item form page because the user is coming to this page from clicking the New Item in the Web part zone.
- I can't use custom XSLT data views as this solution needs to be replicated in a site template
All I can think of is to add a custom "Add New Item" button above the Web part zone in SP Designer and append the Site # in the link. But is there an easier way of just passing a value from one page to another?