activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

工作流活动

上次更新日期 2026年2月28日

创建表单

UiPath.Form.Activities.FormActivity

描述

Use this activity to create a custom form. The form you configure retrieves all the data the end user inputs and stores it in variables, which can be further used in the automation process. The Do block in the activity enables you to perform additional actions when the form opens or while the form is running.

docs image

项目兼容性

Windows - Legacy | Windows

Windows、Windows - 旧版配置

设计器面板
  • Open Form Designer - opens the UiPath Form Designer.
属性面板

常见

此类别中的属性是指常见活动设置。

  • Display Name (String) - Sets the name for this activity. For example, "User Registration Form".
  • ExecuteDoBlockFirst (Boolean) - To execute the activities in the Do block before opening the form, check this box. By default, the checkbox is cleared (set to false).
  • FormTitle (String) - Sets the title for your form, seen by the business users. For example, "Registration Form".
  • Isolated (Boolean) - To run the form in a separate Windows process, check this box. Selecting this check box enables Validation Station and Callouts to run seamlessly from the same process. By default, the checkbox is cleared (set to false).
  • Timer (Int32) - Sets the amount of time in seconds until the form is automatically closed. For example, 50. By default, no value is provided, meaning the form must be closed manually.

数据绑定

此类别中的属性是指链接到自动化流程的数据。

  • FormFieldsCollection (Dictionary<String, Argument>) - Binds workflow variables to the form Field Keys. Use In or In/Out directions for input form fields. Use Out or In/Out directions for output form fields. For example, in the Name field add the string First Name, set the Direction to In/Out, and set the Type to String.

    docs image

  • GenerateInputFields (Boolean) - To add the fields defined in the collection to the form, check this box. By default, the checkbox is selected (set to true).

数据表

此类别中的属性是指表单中的表格数据。

  • MaxColumnsForSchemaGeneration (Int32) - Sets the maximum number of generated columns for DataTable schemas. The default value is 6.
调试

此类别中的属性是指调试表单和试验 CSS 样式。

  • Dev Tools - Enables the developer tool for debugging and troubleshooting forms, called Dev Tools. Developers can use Dev Tools to experiment with CSS styles. When checked, the property opens the Dev Tools window at runtime.

表单选项

此类别中的属性是指表单内的可访问性。

  • Enable Accessibility - Enables accessibility in conformance with USWDS (United States Web Design System). When this property is enabled, the styling of the form might be impacted.

格式

此类别中的属性是指表单外观和格式。

  • DisableMaximize (Boolean) - To deactivate the Maximize, and Restore buttons on forms, check this box. By default, the checkbox is cleared (set to false).
  • DisableMinimize (Boolean) - To deactivate the Minimize and Restore buttons on forms, check this box. By default, the checkbox is cleared (set to false).
  • DisableSanitize (Boolean) - To deactivate final checks on the form components, and improve performance, check this box. By default, the checkbox is cleared (set to false).

Warning: If your form contains unknown URLs or it is using external sources, keep the checkbox cleared.

  • FormHeight (Int32) - Sets the desired height for the form, in pixels. The default height is 400.

  • FormWidth (Int32) - Sets the desired width for the form, in pixels. The default width is 800.

    备注:

    要在最大化窗口中打开表单,请将“表单高度” 和“表单宽度” 字段留空。

  • IconPath (String) - Sets the local relative path to the icon file. The icon is displayed on the taskbar and in the form window. Accepts .ico or image formats . (for example, "C:/Users/Icons/myIcon.ico").

    备注:

    您可以使用相对于流程的路径,只要将.ico文件作为流程中的资源发布(例如"myIcon.ico" )。

Warning: You need to select the Isolated checkbox (Common properties). Otherwise, the icon doesn't get displayed.

  • IsReadOnly (Boolean) - To prevent form fields from being edited, check this box. Fields marked as Always Enabled are not affected by this option. By default, the checkbox is cleared (set to false).
  • LocalCSSFilePath (String) - Sets the path to a local CSS file (for example, "/file://C:\C:\User heCssFile.css").
  • Start Form As Minimized (Boolean) - To generate the form in a minimized window on the taskbar, check this box. By default, the checkbox is cleared (set to false).
  • WindowPositionX (Int32) - Sets the form left margin position, in pixels.
  • WindowPositionY (Int32) - Sets the form top margin position, in pixels.

输入

此类别中的属性引用 JSON 输入数据。

  • FormFieldsInputData (String) - Passes JSON input data to the form and overwrites the values defined in the FormFieldsCollection field. For Data Grid components, structure, the JSON as an array.

其他

此类别中的属性是指其他设置。

  • Private (Boolean) - To skip logging variables and arguments at Verbose level, check this box. By default, the checkbox is cleared (set to false).

输出

此类别中的属性引用输出对象数据。

  • Dismissed (Boolean) - Outputs true when the end user closes the form without providing any input. For example, "isDismissed".
  • FormFieldsOutputData (String) - The JSON data that results from the form upon completion. For example, "userData".
  • SelectedButton (String) - Outputs the form UI elements the end user interacts with. For example, "selectedButton".

启动表单

此类别中的属性将表单绑定到“启动表单活动” ,以便在后台打开该表单。

  • Folder Path (String) - Enter the path where you want to save the form data to.

  • Form Name (String) - Enter a name for your form data.

    docs image

警告:要将每个“创建表单”绑定到相应的“启动表单”活动Folder PathForm Name值必须与“启动表单活动” > “创建表单”属性中设置的值匹配。

  • 描述
  • 项目兼容性
  • Windows、Windows - 旧版配置

此页面有帮助吗?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath Logo
信任与安全
© 2005-2026 UiPath。保留所有权利。