表格已提交至电子邮件。我想将提交日期作为变量获取。使用 now()
设置变量是不够的,因为提交后再次打开表单时变量会发生变化。
最佳答案
一些可能的解决方案:
-
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
创建变量
submissionDate
来存储提交日期。当用户提交表单时,将submissionDate
设置为当前日期。添加检查以仅在变量尚未包含值时设置日期。如果不以这种确切的方式实现,这个想法可以以某种形式使用。我不明白为什么它不起作用。此处建议与 #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.
这里还有一些建议: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/