多次设置字段值 [英] Set Field Value Multiple Times

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

问题描述

您好

我有一个InfoPath 2013请求。我有一个表单,我希望用户能够将他们的名字记下来注册一个事件。在表单上,​​有一个"名称"字段。用户应该访问此表单,输入他们的名称,然后使用按钮单击一个名为"Attendees"的单独
隐藏字段,将其值设置为该名称。然后应清除"名称"字段,并在"与会者"字段中设置名称。

I have an InfoPath 2013 request. I have a form where I want users to be able to put their name down to register for an event. On the form, there is a field for 'Name'. A user should come onto this form, enter their name, and then with a button click a separate hidden field called 'Attendees' will have it values set to that name. The 'name' field should then clear, and the name will set in attendees field.

然后我想要它,所以如果第2个人进入表格,他们可以做同样的事情。他们输入他们的名字,然后注册,然后该名称也会自己发送给与会者字段。但是,它需要与前一个条目串起来(2个名称现在是
)。然后根据有多少人注册参加活动(只会是低数字)。

I then want it, so if person number 2 comes into the form, they can do the same thing. They enter in their name, and then register, and that name then sends itself to the attendees field as well. However, it needs to string with the previous entry (2 names now). And going on depending how many people register for an event (will only be low numbers).

我有没有办法设置一个字段值,但是它可以添加到现有的数据中那个领域?或者有更好的方法可以考虑这样做。

Is there a way I can set a fields value but have it add on to already existing data in that field? Or is there a better way you can think of doing this.

谢谢

推荐答案

您可以应用以下步骤来实现您的目的:

1。例如,我有一个"名称"文本字段,一个"注册"按钮和一个"参加者"文本字段。




2。向"注册"按钮添加两个规则。

点击按钮,然后点击上面工具面板上的"添加规则",选择"当点击此按钮时"> "设置字段的值"。

规则1:条件:"当名称字段不为空时",规则类型:"操作",将"参加者"字段设置为"concat(名称字段,";" ,与会者字段)"。

规则2:条件:" ;当名称字段不是空白时,"规则类型:""操作",设置"名称字段", to""。




3。单击"参加者"字段,在" PROPERTIES ",
选择"只读"框以将"参加者"字段更改为"读取" - 仅

3. Click on "Attendees" fields, under "PROPERTIES", select the "Read-Only" box to change the "Attendees" fields to Read-Only.


$


然后每次在"名称"字段中输入名称然后单击"注册",该名称将被传递给参加者(连接)使用之前注册的
名称),"名称"字段将被清除。

最好的问候,

Allen Allen


这篇关于多次设置字段值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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