submit - 在表单中保留原始 InfoPath 提交日期

标签 submit infopath

表格已提交至电子邮件。我想将提交日期作为变量获取。使用 now() 设置变量是不够的,因为提交后再次打开表单时变量会发生变化。

最佳答案

一些可能的解决方案:

  1. Simply create a field in your form, set its default value to the now() function, and uncheck "Update this value when the result of the formula is recalculated." and you should be all set.

    通过 http://www.infopathdev.com/forums/p/12569/44295.aspx#44295

  2. 创建变量 submissionDate 来存储提交日期。当用户提交表单时,将 submissionDate 设置为当前日期。添加检查以仅在变量尚未包含值时设置日期。如果不以这种确切的方式实现,这个想法可以以某种形式使用。我不明白为什么它不起作用。

  3. 此处建议与 #2 类似的解决方案:I need a submit date that doesn't change .

    You just need to add a field to your form which saves the original file name.

    Have a rule on open which if filename is blank, sets is to your concat (addedtotable, ID). Then in your SP submit use this field as the file name.

    On subsequent opens since it has a value the file name will not change.

    On your exisitng forms you will need to manually set this since you want to retain the original file name but on any new this solves your issue.

    Another option is to query the document library and maybe look for your user's name if you identify the user and the most recent file they have opened.

  4. 这里还有一些建议:Submitting Infopath forms to a Sharepoint Library - how can I generate a unique name for each record .

关于submit - 在表单中保留原始 InfoPath 提交日期,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14431687/

相关文章:

html - 提交按钮图片

xml - 基于属性的XPath节点元素索引

sharepoint - InfoPath 不允许我为列表自定义表单

php - 提交后打开模态窗口并返回页面

java - 如何返回带有 ActionErrors 的多个表单的 JSP?

javascript - 返回用户生成的文件、AJAX 或表单的最佳方式?

javascript - 表单未提交到 iFrame,在新标签页中打开

sharepoint - 将 Infopath 字段映射到 Sharepoint 列

c# - 以编程方式搜索特定的 SharePoint 用户

xml - 使用 xslt 删除信息路径 XML 中的信息路径声明? <? mso ......>