<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/NavigationDeciding/willSubmit(formInfo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC18NavigationDecidingP10willSubmit8formInfoyAC04FormI0V_tYaF"
  },
  "title" : "willSubmit(formInfo:)"
}
-->

# willSubmit(formInfo:)

Allow the application to process form autofill information before a form submission actually takes place.

```
@MainActor mutating func willSubmit(formInfo: WebPage.FormInfo) async
```

## Parameters

`formInfo`

The form values that will be submitted for this navigation

## Discussion

This is an informative callback only. The form values cannot be changed, nor can the navigation be changed
to not submit a form.

The form submission will not actually proceed until after this callback asynchronously resolves.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)