Sharepoint 2007 : Saving Form data with page redirection using custom parameters.
Posted
by Deepu
on Stack Overflow
See other posts from Stack Overflow
or by Deepu
Published on 2010-03-18T05:13:36Z
Indexed on
2010/03/18
5:21 UTC
Read the original article
Hit count: 240
HI Experts,
After saving the form data I would like to REDIRECT to different pages based on the @Status value using the input type button.
<input type="button" value="Save" name="btnSave" id="btnSave" onclick="{ddwrt:GenFireServerEvent('_commit;_redirect={*Confirm.aspx?ID=1}')};" />*
if @Status == "Draft"
url = "draft.aspx ? ID = " @ID
else if @Status == "Save"
url = "save.aspx ? ID = " @ID
else
url = "confirm.aspx ? ID = " @ID
Here @ID and @Status are share point list column names
Now I have hard-coded the url Confirm.aspx?ID=4. But I want to check the status value using XSLT condition and set different URL name with @ID value.. How do I achieve this..
any help would be appreciated..
thanks deepu
© Stack Overflow or respective owner