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

工作流活动

上次更新日期 2026年4月16日

构建第一个表单

这是有关使用UiPath 表单设计器构建第一个表单的分步教程。本教程将演示如何构建通用表单。

教程

本教程是环境问题公众意见评估表单的示例,由单选题和开放式问题以及评分量表组成。

先决条件

在构建第一个表单之前,请确保已安装UiPath.Form.Activities包。

要构建通用表单,请执行以下操作:

  1. Add a Sequence activity into your workflow.

  2. Add a Create Form activity into the Sequence.

  3. Select Open Form Designer. The UiPath Form Designer opens.

  4. Add a Label/Header component in the form.

    1. “标签大小”下拉列表中选择“标头-中”
    2. “内容”部分中,键入Environmental Issues Survey
      重要提示:

      请务必在编辑后保存每个组件。

  5. Drag and drop a Radio component in the form.

    1. “标签”重命名为Do you want to participate in the survey?
    2. “数据”选项卡的“值”部分中,为组件添加两个值。在“标签”字段中键入Yes
    3. 单击“添加其他”按钮,然后在“标签”字段中键入No
  6. Add another Radio component into the form.

    1. “标签”重命名为How concerned are you about air pollution?
    2. “说明”部分中,输入You can choose one option only ,让用户知道他们只能选择一个选项。
    3. “数据”选项卡的“值”部分中,为组件添加四个值。在“标签”字段中键入Not at all concerned
    4. 单击“添加其他”按钮,然后在“标签”字段中键入Slightly concerned
    5. 单击“添加其他”按钮,然后在“标签”字段中键入Moderately concerned
    6. 单击“添加其他”按钮,然后在“标签”字段中键入Very concerned
  7. Drag and drop a Text Area component in the form and rename the Label as What is your opinion on how the government tries to reduce global warming?.

  8. Drag and drop a Number component in the form and rename the Label as Please type in your age:.

  9. 保存表单并运行工作流以测试您的第一个表单。

    docs image

请参阅“关于表单组件”页面,详细了解组件类型及其工作方式。

预览您的第一个表单

要预览表单,请单击“预览”docs image “表单设计器”功能区中的图标。

To resize the display size (in pixels) of the form, go to the Form Display Size section and change the values for the Height and Width measurements.

docs image

To exit the Preview mode, click Exit Preview in the Form Designer ribbon.

选择和自定义主题

要选择预制主题,请执行以下操作:

  1. In the Preview mode, go to the Themes panel.
  2. 选择一个现有的预制主题。

要自定义预制主题,请执行以下操作:

  1. In the Preview mode, go to the Themes panel.
  2. 选择 “自定义当前主题”
  3. 使用可用选项自定义表单和主按钮。
  4. 选择 “保存自定义”

示例工作流

要查看完整的工作流或以备后用,请下载XAML 示例

  • 教程
  • 预览您的第一个表单
  • 选择和自定义主题
  • 示例工作流

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新