You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/resources/control-flow/user-interactivity/forms/form-actions/reset-form-field.md
+4-64Lines changed: 4 additions & 64 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,73 +8,13 @@ sidebar_position: 1
8
8
---
9
9
# Reset Form Field [Action]
10
10
11
-
This action allows you to reset a value for the Form widgets. This is helpful in clearing out any previously entered data and allows users to start fresh.
11
+
The **Reset Form Field**action allows you to reset values in form widgets. This is especially useful for clearing previously entered data and giving users a clean slate.
12
12
13
-
For example, If a form has been successfully submitted, it may make sense to clear out the form fields so that the user can enter new data if they want to submit the form again.
13
+
For example, after a form is successfully submitted, you can use this action to clear the input fields—making it easy for users to enter new information for another submission.
14
14
15
-
<div style={{
16
-
position: 'relative',
17
-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
Follow the steps below to add this action to any widget.
44
-
45
-
1. Select the **Widget** (e.g., Button, etc.) on which you want to add the action.
46
-
2. Select **Actions** from the properties panel, If it's the first action, click **+ Add Action** button. Otherwise, click the "**+**" button below the previous action tile (inside *Action Flow Editor*) and select **Add Action**.
47
-
3. Search the **Reset Form Field** (under *State Management*) action and select the widget you would like to reset.
48
-
49
-
You can reset the same types of widgets in a single action only. e.g., multiple *TextField* widgets.
50
-
51
-
<div style={{
52
-
position: 'relative',
53
-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
0 commit comments