---
title: "willSubmit(formInfo:)"
framework: webkit
role: symbol
role_heading: Instance Method
path: "webkit/webpage/navigationdeciding/willsubmit(forminfo:)"
---

# willSubmit(formInfo:)

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

## Declaration

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

## Parameters

- `formInfo`: The form values that will be submitted for this navigation

## Discussion

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.
