apps
2023.10
false
UiPath logo, featuring letters U and I in white
LEGACY
Legacy Apps User Guide for Automation Suite
Automation CloudAutomation Cloud Public SectorAutomation Suite
Last updated Nov 11, 2024

Rule: Reset Values

The Reset Values rule reverts a control to a default value, or clears it if a default value is not configured.



Tip:

If you apply this rule to a container, it will be applied to all controls within the container, including nested containers.

All controls that are part of that container will be reset or cleared, depending on the situation. For more information, see the Available controls section below.

Available Controls

To better understand how the Reset Values rule works for different controls, check the table below.

Attention: If a control is not mentioned in the table below, the Reset Values rule does not apply to that control.

Control

How it works

Checkbox

  • If no default value is configured for the control, the rule unmarks the checkbox.
  • If the control default value is configured, the rule won't unmark the checkbox.

Date Picker

  • If no default value is configured for the control and if no default date is configured, the rule clears the date.

Dropdown

  • If a default value is configured, the rule only clears the selected value, not all control values.

Multiselect dropdown

  • If a default value is configured, the rule only clears the selected value, not all control values.

File Picker

  • The rule clears the File Picker object and its associated objects, so the user can upload another file.

Radio Button

  • The rule removes any selection, unless a default value is configured.

Slider

  • The rule resets the slider bubble, unless a default value is configured.

Switch

  • The rule resets the switch, unless a default value is configured.

Text Area

  • The rule clears the values, unless a default value is configured.

Textbox

  • The rule clears the values, unless a default value is configured.

Custom List

  • The rule clears the selected values.

Table

  • The rule clears the selected values.

Container

  • If you apply this rule to a container, it'll be applied to all controls within the container, including nested containers.

Container Layout

  • If you apply this rule to a container, it'll be applied to all controls within the container, including nested containers.

App variable

  • The rule sets the value to empty.

Example

You can use the Reset Values rule when building a form.

For example, you can add the rule to a Submit button at the end of a form and configure it to reset the whole container. This way, after filling in all the fields and submitting the information, the form resets to its default values and the user can fill it in a second time.

  • Available Controls
  • Example

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.