简体   繁体   English

输入最后一个字段后自动提交/刷新InfoPath表单

[英]Auto-Submit/Refresh InfoPath form After Last Field is Entered

I'm creating a simple inventory tracking system with scanners and barcodes. 我正在使用扫描仪和条形码创建一个简单的库存跟踪系统。 I am using InfoPath 2013 to create a form that will update a SharePoint List. 我正在使用InfoPath 2013创建将更新SharePoint列表的表单。

My form has two fields: Location and StockNumber. 我的表单有两个字段:Location和StockNumber。 A barcode scanner will scan a barcode to populate the Location; 条形码扫描仪将扫描条形码以填充位置; I have a rule in place to automatically move to StockNumber once Location is filled. 我有一个适当的规则,可在位置填满后自动移动到StockNumber。

Then the StockNumber barcode is scanned, it populates the StockNumber field, and the focus moves on to the submit button. 然后扫描StockNumber条形码,填充StockNumber字段,并将焦点移至“提交”按钮。

As of now, the user would have to click submit or press Enter on their keyboard to save the entry and see a new form. 到目前为止,用户必须单击“提交”或按键盘上的Enter键以保存条目并查看新表单。

I would like for the form to submit the data and refresh the form automatically once the StockNumber field is entered. 我希望表单在输入StockNumber字段后提交数据并自动刷新表单。 I'm trying to automate this process as much as possible to ensure compliance. 我正在尝试使此过程尽可能自动化,以确保合规性。

I've seen some answers on using JavaScript in this instance but don't know how I would implement in this situation. 我已经看到了在这种情况下使用JavaScript的一些答案,但是不知道在这种情况下如何实现。

Any help is greatly appreciated. 任何帮助是极大的赞赏。

You can set the postback settings to refresh the form and also can submit the data if the value of Field changes. 您可以设置回发设置以刷新表单,也可以在“字段”的值更改时提交数据。 closing the form is a catch, you can only have that on buttons. 关闭表单很麻烦,您只能在按钮上使用它。 One thing you can try is to trigger a field value change event or try to set the condition for submit button to trigger on field change. 您可以尝试的一件事是触发字段值更改事件,或尝试设置提交按钮在字段更改时触发的条件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM