Sharepoint 2007 : Saving Form data with page redirection using custom parameters
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..
Are you looking for url = "{@Status}.aspx ? ID = {@ID}
" ?
If it is not please elabrate your question.
精彩评论