> For the complete documentation index, see [llms.txt](https://doc.sitecorepowershell.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.sitecorepowershell.com/appendix/common/show-yesnocancel.md).

# 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/>
