title: What is PromptOptions.Validations
body: <p>In BotFramework V4 you can validate user inputs using your own validator function:</p>
  <pre><code>dialogs.Add(new TextPrompt(&quot;textPrompt&quot;, TextPromptValidatorAsync));
  </code></pre>
  <p>But there is also a <a href="https://docs.microsoft.com/en-us/dotnet/api/microsoft.bot.builder.dialogs.promptoptions.validations?view=botbuilder-dotnet-stable" rel="nofollow noreferrer">Validations Property</a> in PromptOptions class.</p>
  <pre><code>return await step.PromptAsync(
      TextPrompt,
      new PromptOptions
      {
          Prompt = MessageFactory.Text(&quot;What is your name?&quot;),
          Validations = ??
      },
      cancellationToken);
  </code></pre>
  <p>What is it for?</p>