title: Remote validation with radio button in asp.net mvc
body: <p>I need to use remote validation on my boolean field. I have view model which look like this:</p>
  
  <pre><code>public class ViewModel
  {   
      [Remote("ValidMePlease", "Home", AdditionalFields = "SomeKindOfDate", ErrorMessage = "use date with true")]
      public bool IsSomething {get;set;}
      public DateTime? SomeKindOfDate {get;set;}
  }
  </code></pre>
  
  <p>My Controller:</p>
  
  <pre><code>[OutputCache(Location = System.Web.UI.OutputCacheLocation.None, NoStore = true)]
  public class HomeController : Controller 
  {
      public JsonResult ValidMePlease(bool IsSomething , DateTime? SomeKindOfDate )
      {
          if (IsSomething &amp;&amp; !SomeKindOfDate .HasValue)
              return Json(false, JsonRequestBehavior.AllowGet);
          return Json(true, JsonRequestBehavior.AllowGet);
      }
  }
  </code></pre>
  
  <p>My view:</p>
  
  <pre><code>&lt;div class="control"&gt;
      @Html.LabelFor(m =&gt; m.IsSomething , new { @class = "control-label" })
      &lt;div class="controls"&gt;
          &lt;label class="radio inline"&gt;
              @Html.RadioButtonFor(m =&gt; m.IsSomething , false) No
          &lt;/label&gt;
          &lt;label class="radio inline"&gt;
              @Html.RadioButtonFor(m =&gt; m.IsSomething, true) Yes
          &lt;/label&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>My rendered view:</p>
  
  <pre><code>   &lt;div class="control"&gt;
          &lt;label class="control-label" for="IsSomething "&gt;Is something&lt;/label&gt;
          &lt;div class="controls"&gt;
              &lt;label class="radio inline"&gt;
                  &lt;input checked="checked" data-val="true" data-val-remote="use date with true" data-val-remote-additionalfields="*.IsSomething ,*.SomeKindOfDate" data-val-remote-url="/admin/User/ValidMePlease" data-val-required="Is something is required." id="IsSomething " name="IsSomething " type="radio" value="False" /&gt; No
              &lt;/label&gt;
              &lt;label class="radio inline"&gt;
                  &lt;input id="IsSomething " name="IsSomething " type="radio" value="True" /&gt; Yes
              &lt;/label&gt;
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Idea is that when boolean field has  true I need to require a date. And what's the problem. When I submit form it always pass <strong><code>false</code></strong> for <strong><code>IsSomething</code></strong> in my <strong><code>ValidMePlease</code></strong> remote method. I think it happens because only first input has <strong><code>data-val-</code></strong> attributes. Any suggestion will be appreciated.</p>