title: jQuery.dForm date and checkbox for custom data type
body: <p>Here i attached demo file and that i facing proble to render JSON String to render that response in HTML Form and in that date type and checkbox.
  In my json response is </p>
  
  <pre><code>{"data":
  [
  {"scope":"global","name":"isMarried","value":true,"type":"boolean"},
  {"scope":"global","name":"birthdate","value":"2014-06-24T07:00:00Z","type":"date"},
  {"scope":"global","name":"lastname","value":"Test","type":"string"},
  {"scope":"global","name":"firstname","value":"Test","type":"string"},
  {"scope":"global","name":"education","value":"mba","type":"string"}
  ]
  } 
  </code></pre>
  
  <p>in that i also come up with type:string and caption  you can see in the attched file.</p>
  
  <p>but i m facing problem for type:date and checkbox..how can we render in the html form</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;meta charset="ISO-8859-1"&gt;
      &lt;meta charset="utf-8" /&gt;
      &lt;title&gt;&lt;/title&gt;
      &lt;meta name="description" content="" /&gt;
      &lt;meta name="keywords" content="" /&gt;
      &lt;meta name="author" content="" /&gt;
      &lt;meta name="viewport" content="width=device-width; initial-scale=1.0" /&gt;
      &lt;!-- !CSS --&gt;
      &lt;link href="css/html5reset.css" rel="stylesheet" /&gt;
      &lt;link href="css/style.css" rel="stylesheet" /&gt;
      &lt;script src="js/jquery-1.5.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
      &lt;script src="js/jquery.dform-1.1.0.js" type="text/javascript"&gt;&lt;/script&gt;
  
      &lt;title&gt;Insert title here&lt;/title&gt;
  
      &lt; script type="text/javascript"&gt;
      $(function() {
  
      $.dform.addType("string", function(options) {
          // Return a new button element that has all options that
          // don't have a registered subscriber as attributes
          return $("&lt;input&gt;").dform('attr', options);
      });
  
      $.dform.addType("boolean", function(options) {
          // Return a new button element that has all options that
          // don't have a registered subscriber as attributes
          return $("&lt;checkbox&gt;").dform('value', options);
      });
  
      $.dform.subscribe("name", function(options, type) {
          // Just run if the type is a hellobutton
          if(type === "string") {
  
                  var ops = {};
                  if (typeof (options) === "string") {
                      ops["html"] = options;
                  } else {
                      $.extend(ops, options);
                  }
                  ops.type = "label";
                  if (this.attr("id")) {
                      ops["for"] = this.attr("id");
                  }
                  var label = $($.dform.createElement(ops));
                  if (type === "checkbox" || type === "radio") {
                      this.parent().append($(label));
                  } else {
                      label.insertBefore(this);
                  }
                  label.dform('run', ops);
              }
              });
          // Generate a form
          $("#myform").dform({
          "action" : "index.html",
          "method" : "get",
          "html" :
          [
  
              {
                  "scope":"global",
                  "name":"details",
                  "value":"Looks very interesting!",
                  "type":"string"
              },
              {
                  "scope":"global",
                  "name":"notEnoughInformation",
                  "value":false,
                  "type":"boolean"
              },
              {
                  "scope":"global",
                  "name":"initiator",
                  "value":"kermit",
                  "type":"string"
              },
              {
                  "name": "birthdate"
                  "type": "date"
                  'value": "2014-06-24T07:00:00Z"
                  "scope": "global"
              },
              {
                  "type" : "submit",
                   "value" : "Login"
                 }
                  ]
          });
      });
  
  
  &lt;/script&gt;
  &lt;form id="myform"&gt;&lt;/form&gt;
  &lt;/head&gt;
  &lt;body&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>