Sharepoint 2007 : Saving Form data with page redirection using custom parameters.
- by Deepu
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