# Show-YesNoCancel

Shows Yes/No/Cancel dialog to the user and returns user choice.

## Syntax

Show-YesNoCancel \[-Title \<String>] \[-Width \<Int32>] \[-Height \<Int32>]

## Detailed Description

Shows Yes/No/Cancel dialog to the user and returns user choice as a string value.

Depending on the user response one of the 2 strings is returned:

* yes
* no
* cancel

© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions

## Parameters

### -Title \<String>

Question to ask the user in the dialog

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Width \<Int32>

Width of the dialog.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

### -Height \<Int32>

Height of the dialog.

| Aliases                     |       |
| --------------------------- | ----- |
| Required?                   | false |
| Position?                   | named |
| Default Value               |       |
| Accept Pipeline Input?      | false |
| Accept Wildcard Characters? | false |

## Outputs

The output type is the type of the objects that the cmdlet emits.

* System.String

## Notes

Help Author: Adam Najmanowicz, Michael West

## Examples

### EXAMPLE

```powershell
PS master:\> Show-YesNoCancel "Should we delete those 2 items?"

cancel
```

## Related Topics

* [Read-Variable](/appendix/common/read-variable.md)
* [Show-Alert](/appendix/common/show-alert.md)
* [Show-Application](/appendix/common/show-application.md)
* [Show-Confirm](/appendix/common/show-confirm.md)
* [Show-FieldEditor](/appendix/common/show-fieldeditor.md)
* [Show-Input](/appendix/common/show-input.md)
* [Show-ListView](/appendix/common/show-listview.md)
* [Show-ModalDialog](/appendix/common/show-modaldialog.md)
* [Show-Result](/appendix/common/show-result.md)
* [Show-YesNoCancel](/appendix/common/show-yesnocancel.md)
* <https://github.com/SitecorePowerShell/Console/>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.sitecorepowershell.com/appendix/common/show-yesnocancel.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
