sharepoint list重定向与表单数据

时间:2010-02-15 21:17:55

标签: sharepoint

是否有人知道语法或将共享点“新项目表单”重定向到URL的方式,并将表单中的值作为URL中的参数传递?

因此,如果表单作为“姓氏”字段,我希望重定向类似于http://path_to_other_page?name=lastname

我知道我需要使用类似的东西: onclick =“javascript:{ddwrt:GenFireServerEvent(concat('__ commit; __ redirect = {path_to_other_page.aspx?name =',/ dsQueryResponse / Rows / Row / @ LastName))}”

除非这对我不起作用 - 我认为“/ dsQueryResponse / Rows / Row / @ LastName”不正确 - 我只是想从我在这里看到的其他帖子中猜测...

任何?

2 个答案:

答案 0 :(得分:0)

这看起来像是在编辑表单而不是新表单上工作的东西 - 在加载页面时加载数据,而不是在提交页面时加载。要在javascript中获取数据,您需要直接访问文本框 - jquery可能会有所帮助。

答案 1 :(得分:0)

我认为您可以在模态对话框中使用SharePoint的构建(http://msdn.microsoft.com/en-us/library/ff410058(v=office.14).aspx)。在模式对话框中,您可以使用回调函数从表单页面获取参数。