Chris_Lombardi
asked on
Using QueryStrings as Default Values for a Select Input in Sharepoint Designer 2007
I created a Custom List Form in Sharepoint Designer and I have a Select field that has about 300 case numbers. I want to use information from a querystring to set the default value of this field. How can I do this in Sharepoint Designer?
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
great feedback guys! After reviewing the mess a user left me, I decided to switch things up a little bit. After a user selects a case number they are presented with some info and a link to add remarks to the case they selected. Since the user has already selected a case to add remarks to, I really don't see the need to have another select input for them to select the case number to add remarks to. I actually think this leaves a larger margin for error so I decided to make this into an Label that displays the Case Number in the Querystring. Unfortunately, when I submit the remark, it doesn't insert the Case Number. I tried switching the Select input to a disabled textbox as well, but had no luck. Any suggestions?
"Since the user has already selected a case to add remarks to, I really don't see the need to have another select input for them to select the case number to add remarks to."
Why aren't they simply going to the list containing the cases itself and why doesn't that list itself simply have a comments column? Is this a doc library or a list?
Why aren't they simply going to the list containing the cases itself and why doesn't that list itself simply have a comments column? Is this a doc library or a list?
ASKER
I am still trying to learn the history on this site, but the remarks are all contained in a list. I am assuming the remarks are in a list because each remark that is submitted needs to capture the date, user, remark etc. and retain a history.
So why isn't there simply a remarks column (multiple line text column) on the case list itself? Again, are these cases referring to a doc in a doc lib? Is that where the cases themselves are stored?
what is your custom list form used for?
Is it for creating a new item?
If yes, then you will solve this by using a simple jQuery function.
If the form is for displaying items then you should think about BobHavertyComh suggestion to use the OOTB Query String filter web part (if possible hence the web part displaying the content must have a corresponding filter consumer interface).
HTH
Rainer