title: How to display only one error message using Html.ValidationSummary?
body: <p>I have a view (skipping redundant code for simplicity):</p>
  
  <pre><code>@model CompetencyModel
  @using (Html.BeginForm())
  {
      @Html.ValidationSummary()
      @Html.EditorFor(model =&gt; model.Results)
  }
  </code></pre>
  
  <p>When I submit, if validation fails inside <code>EditorFor</code>, ValidationSummary <strong>shows the list of all validation messages</strong> for each item coming from <code>EditorFor</code>. </p>
  
  <p>This screenshot is a view, where <code>EditorFor</code> is a single line with radio buttons:</p>
  
  <p><img src="https://i.stack.imgur.com/WksRX.png" alt="enter image description here"></p>
  
  <p>But I need a <strong>single error message</strong> just saying that something failed. I tried:</p>
  
  <pre><code>@Html.ValidationSummary(true)
  @Html.EditorFor(model =&gt; model.Results)
  </code></pre>
  
  <p>But it doesn't show anything. I tried</p>
  
  <pre><code>@Html.ValidationSummary(true)
  @Html.EditorFor(model =&gt; model.Results)
  @Html.ValidationMessageFor(model =&gt; model.Results, "ERROR !!!")
  </code></pre>
  
  <p>But it doesn't show anything.</p>
  
  <p>What am I doing wrong? Thank you.</p>
  
  <p><strong>Solution</strong>
  This will do the trick.</p>
  
  <pre><code>&lt;style&gt;.validation-summary-errors ul { display: none; }&lt;/style&gt;
  @Html.ValidationSummary("Can't save, you must answer all questions !!")
  </code></pre>