Versions Compared

Key

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

Time Picker is a standard text field with add-on script that enables it to collect time-format input.时间选择器是一个带附加脚本的标准文本字段,可用于收集时间格式的输入。


Figure 1: Time Picker in Form Builder图1:表单生成器中的时间选择器

Figure 2: Time Picker in actual form图2:实际形式的时间选择器

Figure 3: Time Picker Properties

图3:时间选择器属性

名称描述NameDescription
IDElement ID (By declaring as "start_time", a corresponding database table column "c元素ID(通过声明为“start_time”,将创建相应的数据库表列“c_start_time" will be created)time”)
LabelElement Label to be displayed to end user.元素标签显示给最终用户。

Figure 4: Time Picker Properties - Advanced Options图4:时间选择器属性 - 高级选项

NameDescription
Default Value

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

这里接受哈希变量。

Default Value when there's no existing value found.

Hash variable is accepted here.

24 Hours Format24 Hours Format24小时制
Validator

Attach a Validator plugin to validate the input value附加一个Validator插件来验证输入值。.

Info
titleWhen will validation takes place?

Validation will takes place whenever form is submitted except when it is submitted as "Save as Draft".除非提交表格为“另存为草稿”,否则将在提交表格时进行验证

Readonly

Determines if the element is editable.确定元素是否可编辑。

Display field as Label when readonly?

Displays the value of the element as plain text when element is set to "Readonly".元素设置为“只读”时,将元素的值显示为纯文本。

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