Skip to content

Commit 20d448a

Browse files
committed
Update reset form action
1 parent 7a9da16 commit 20d448a

File tree

5 files changed

+5
-65
lines changed

5 files changed

+5
-65
lines changed

docs/resources/control-flow/user-interactivity/forms/form-actions/reset-form-field.md

Lines changed: 4 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -8,73 +8,13 @@ sidebar_position: 1
88
---
99
# Reset Form Field [Action]
1010

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.
1212

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.
1414

15-
<div style={{
16-
position: 'relative',
17-
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
18-
height: 0,
19-
width: '100%'}}>
20-
<iframe
21-
src="https://demo.arcade.software/8j2HzV0zEQu2JN23K0NG?embed&show_copy_link=true"
22-
title=""
23-
style={{
24-
position: 'absolute',
25-
top: 0,
26-
left: 0,
27-
width: '100%',
28-
height: '100%',
29-
colorScheme: 'light'
30-
}}
31-
frameborder="0"
32-
loading="lazy"
33-
webkitAllowFullScreen
34-
mozAllowFullScreen
35-
allowFullScreen
36-
allow="clipboard-write">
37-
</iframe>
38-
</div>
39-
<p></p>
40-
41-
## Adding Reset Form Field action
42-
43-
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
54-
height: 0,
55-
width: '100%'}}>
56-
<iframe
57-
src="https://demo.arcade.software/ceKpYitIZcLrq8UKZBdp?embed&show_copy_link=true"
58-
title=""
59-
style={{
60-
position: 'absolute',
61-
top: 0,
62-
left: 0,
63-
width: '100%',
64-
height: '100%',
65-
colorScheme: 'light'
66-
}}
67-
frameborder="0"
68-
loading="lazy"
69-
webkitAllowFullScreen
70-
mozAllowFullScreen
71-
allowFullScreen
72-
allow="clipboard-write">
73-
</iframe>
74-
</div>
75-
<p></p>
15+
![reset-form-field](imgs/reset-form-field.avif)
7616

7717
:::info
7818
You can also reset form fields that are inside the components.
79-
![reset-form-field-component](../../imgs/reset-form-field-component.png)
19+
![reset-form-field-component](imgs/reset-form-field-component.avif)
8020
:::

docs/resources/control-flow/user-interactivity/forms/form-actions/set-form-field.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ When Focus Field When Set is enabled, you can set one of the following **Cursor
4545
:::info
4646
You can also set form fields that are inside the components.
4747
<p></p>
48-
![set-form-field-in-component](../../imgs/set-form-field-in-component.avif)
48+
![set-form-field-component](imgs/set-form-field-component.avif)
4949
:::

0 commit comments

Comments
 (0)