Changed Roo/form/BasicForm.jsdocs/json/roodata.jsondocs/src/Roo_form_BasicForm.js...
authorAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:20:38 +0000 (11:20 +0800)
committerAlan <alan@roojs.com>
Fri, 23 Sep 2022 03:20:38 +0000 (11:20 +0800)
Roo/form/BasicForm.js
docs/json/roodata.json
docs/src/Roo_form_BasicForm.js.html
docs/symbols/Roo.form.BasicForm.json
docs/symbols/Roo.form.Form.json
roojs-debug.js
roojs-ui-debug.js

index 67472d0..130319a 100644 (file)
@@ -507,6 +507,9 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
             for(id in values){
                 if(typeof values[id] != 'function' && (field = this.findField(id))){
                     
+                    
+                    
+                    
                     if (field.setFromData && 
                         field.valueField && 
                         field.displayField &&
@@ -521,6 +524,9 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
                         sd[field.displayField] = typeof(values[field.name]) == 'undefined' ? '' : values[field.name];
                         field.setFromData(sd);
                         
+                    } else if (field.inputType && field.inputType == 'radio') {
+                        
+                        field.setValue(values[id]);
                     } else {
                         field.setValue(values[id]);
                     }
@@ -546,7 +552,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     /**
      * Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
      * they are returned as an array.
-     * @param {Boolean} asString (default false)
+     * @param {Boolean} asString (def)
      * @return {Object}
      */
     getValues : function(asString)
index 3c8a71c..485b3f2 100644 (file)
           {
             "name" : "asString",
             "type" : "Boolean",
-            "desc" : "",
+            "desc" : "(default false)",
             "isOptional" : false
           }
         ],
           {
             "name" : "asString",
             "type" : "Boolean",
-            "desc" : "",
+            "desc" : "(default false)",
             "isOptional" : false
           }
         ],
index 1210410..e0a4d54 100644 (file)
@@ -546,7 +546,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     </span><span class="jsdoc-comment">/**
      * Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
      * they are returned as an array.
-     * @param {Boolean} asString
+     * @param {Boolean} asString (default false)
      * @return {Object}
      */
     </span><span class="jsdoc-var">getValues </span><span class="jsdoc-syntax">: </span><span class="jsdoc-keyword">function</span><span class="jsdoc-syntax">(</span><span class="jsdoc-var">asString</span><span class="jsdoc-syntax">)
index f220c77..32cc83a 100644 (file)
         {
           "name" : "asString",
           "type" : "Boolean",
-          "desc" : "",
+          "desc" : "(default false)",
           "isOptional" : false
         }
       ],
index 75d14e3..4b50cc6 100644 (file)
         {
           "name" : "asString",
           "type" : "Boolean",
-          "desc" : "",
+          "desc" : "(default false)",
           "isOptional" : false
         }
       ],
index 0e683fb..beb5f43 100644 (file)
@@ -54329,7 +54329,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     /**
      * Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
      * they are returned as an array.
-     * @param {Boolean} asString
+     * @param {Boolean} asString (default false)
      * @return {Object}
      */
     getValues : function(asString)
index 94e89a3..b0e0a86 100644 (file)
@@ -29830,7 +29830,7 @@ clientValidation  Boolean          Applies to submit only.  Pass true to call fo
     /**
      * Returns the fields in this form as an object with key/value pairs. If multiple fields exist with the same name
      * they are returned as an array.
-     * @param {Boolean} asString
+     * @param {Boolean} asString (default false)
      * @return {Object}
      */
     getValues : function(asString)