根据以前填写的字段填写字段 [英] Fill in field based on previous filled out fields

查看:107
本文介绍了根据以前填写的字段填写字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hiya!

稍微磕磕绊绊,希望有人能说清楚。

Just stumbling a little, hope someone can shed some light.

我有一张表格,当选中复选框后,它应根据以前填写的字段自动填写字段。

I have a form where, when a checkbox is selected, it should automatically fill out a field based on previously filled out fields.

更具体地说,前面的字段是"名字"和"名字"。和"姓氏"。选中"需要电子邮件"的复选框如果选中,则此复选框旁边的字段变为可用/可见,并自动填充值"First
Name"。"Last Name"@ company.com。示例...

More specifically, the previous fields are "First Name" and "Last Name". A checkbox selecting "email required" is selected, then a field next to this checkbox becomes available/visible and is auto populated with the value "First Name"."Last Name"@company.com. Example...

字段1 : 名字:彼得  (手动输入文本框)

字段2 : 
Last Nam e :Bleu  (手动输入文本框)

Field 1: First Name: Peter  (Manual input Text Box)
Field 2
Last Name: Bleu (Manual input Text Box)

字段3 需要电子邮件?(手动选择是/否框)

Field 3: Email Required? (Manual select Yes/No Box)

第4栏:Peter.Bleu@company .com(自动填充的文本框)

Field 4: Peter.Bleu@company.com (Auto-populated Text box)

我正在尝试在复选框的InfoPath中创建规则并选择"操作"。作为规则类型。该操作被配置为"设置字段的值",然后我使用一个函数来插入[字段1]。[字段2] @ company.com但是这不能按预期工作

I'm trying to create a rule in InfoPath on the checkbox and selecting "Action" as the rule type. The action is configured to "Set a field's value", I then use a function to insert [Field 1].[Field 2]@company.com but this does not work as intended.

生成的字段会像这样填充....

The resulting field gets populated like this....

../ my:FirstName ... / my:LastName@company.com

../my:FirstName.../my:LastName@company.com

这可能是因为填写的字段尚未发送数据并且只是肤浅的,当计算值时,它会使用默认字段名称。

This is probably because the filled in fields have not sent their data yet and is only superficial, when the value gets calculated, it uses the default field name instead.

但是,当我只选择一个字段时,它会填充正确的值。我的完全停止将名字和姓氏分开是罪魁祸首吗?

However, when I only select one field, it gets populated with the correct value. Could my full stop separating the first name from the last name be the culprit?

我尝试过使用前面的规则,例如"提交数据"。但不确定如何使用此控件或如果这适用于我的情况。

I tried playing around with preceding rules like "Submit data" but not sure how to use this control or if this will work for my situation.

任何帮助非常感谢!

Steven

推荐答案

史蒂文,

您需要使用concat函数来设置字段的值。  详细设置如下:

You need to use the concat function to set the field’s value.  The detailed setting is in the screenshot below:

您唯一需要更改的是使用concat函数将您的名字,点,姓氏和公司电子邮件地址组合在一起,并将其设置为字段的值。该功能在文本类别中。使用插入功能按钮插入它。

The only thing you need to change is to use concat function to combine you first name, dot, last name and the company email address, and set it as the field’s value. The function is in the text category. Use the insert function button to insert it.

要使规则隐藏电子邮件字段,直到用户选中该复选框,请参阅下面的设置。

For the rule to hide the email field until the user check the box, see the setting below.

以下是它的工作原理:

希望这会有所帮助。我期待您的回复更新。

Hope this will help. I look forward to your reply with any update.

最好的问候

Jerry Xu


这篇关于根据以前填写的字段填写字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆