---
title: "requestConfirmation(for:dialog:view:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/intentparametercontext/requestconfirmation(for:dialog:view:)-97i0g"
---

# requestConfirmation(for:dialog:view:)

Use requestConfirmation when you need to the ask user to confirm the parameter value.

## Declaration

```swift
func requestConfirmation<ViewType>(for itemToConfirm: Value.ValueType, dialog: IntentDialog? = nil, @ViewBuilder view: () -> ViewType) async throws -> Bool where ViewType : View
```

## Parameters

- `itemToConfirm`: The items to be presented to the user for confirmation
- `dialog`: A custom dialog that may be used when prompting the user for the value
- `view`: A view to display when requesting confirmation.
