Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColorgreen
borderWidth1
titleBGColor#ddffcc
borderStylesolid
titleDefinition

Hidden Field is a standard HTML Input element. Unlike Text Field, Hidden Field does not show up on the page, hidden away from the user. It is typically used to pass/set temporary or session-based information.

...

定义

隐藏字段 是一个标准的HTML输入元素。与文本字段不同,隐藏字段不会显示在页面上,用户无法看到. 它通常用于传递/设置临时或基于会话的信息。


Image Added

图1:突出显示示例费用声明应用中的隐藏字段的屏幕截图

本文中的屏幕截图从

Figure 1: Screenshot highlighting a Hidden Field in sample Expenses Claim App

Screenshots in this article obtained from http://localhost:8080/jw/web/console/app/hr_expense/1/form/builder/hr_expense_new

Figure 2: Hidden Field Properties

图2:隐藏字段属性

名称描述
ID元素ID(通过声明为“status”,将创建相应的数据库表列“c_status”)
Default Value

没有找到现有值时的默认值。

这里接受哈希变量。例如,您可以键入以下内容

NameDescription
IDElement ID (By declaring as "status", a corresponding database table column "c_status" will be created)
Default Value

Default Value when there's no existing value found.

Hash variable is accepted here. For example, you may key the following

Code Block
#currentUser.firstName# #currentUser.lastName#

to pre-populate the field with current logged in user's name.预先使用当前登录用户的名称填充字段。

Figure 3: Hidden Field Properties图3:隐藏字段属性

NameDescription
Data PriorityDetermines on which value to be taken into consideration. There are 3 options with their own data precedence to cater to different use cases.确定要考虑哪个值。有3个选项,各自拥有数据优先级,以满足不同的使用情况。
Workflow Variable

If the form is part of a workflow process, upon saving of the form (by clicking on "Save as Draft" or "Complete" button). The value in this input field will be saved into the corresponding workflow variable named here.如果表单是工作流程的一部分,则在保存表单时(单击“另存为草稿”或“完成”按钮)。此输入字段中的值将被保存到相应的工作流程变量中。

Info
titleUsing a non-existent Workflow Variable name

You will get the following warning with the name printed out (e.g. status) in the server log if you attempt to map to a non-existent Workflow Variable.如果尝试映射到不存在的工作流程变量,则会在服务器日志中输出以下警告(例如状态)。

Code Block
context attribute status does not exist in process context - adding new attributes to the process context is not allowed


...