Skip to content

Commit

Permalink
Update field.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tabuna authored Nov 4, 2024
1 parent aafe29d commit 4bc8b96
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/docs/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,8 @@ Button::make('Submit')

### Action Confirmation

To prevent accidental actions, add the `confirm()` method. This will display a confirmation dialog before executing the action. It is particularly useful for irreversible actions, such as data deletion.
To prevent accidental actions, add the `confirm()` method. This will display a confirmation dialog before executing the action.
It is particularly useful for irreversible actions, such as data deletion.

```php
Button::make('Delete')
Expand All @@ -1109,7 +1110,7 @@ Button::make('Delete')

> **Tip:** Use clear and concise messaging in `confirm()` so the user understands the consequences.
### Specifying the URL for Data Submission
### Submission URL

To specify the URL where the form data should be sent, use the `action()` method. Typically, this will be the URL of a controller within your application where the request is processed after the button is clicked.

Expand Down

0 comments on commit 4bc8b96

Please sign in to comment.