Skip to content

Commit 47ea09b

Browse files
committed
Fix an issue with getValue of disabled radio
1 parent b132c8e commit 47ea09b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Xrm.Portal.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Xrm.Portal = {
265265
return this.controlType.Checkbox;
266266
} else if (c.attr("type") == "hidden") {
267267
return this.controlType.Lookup;
268-
} else if (c.attr("class") != null && (c.attr("class").startsWith("boolean-radio") || c.attr("class").startsWith("picklist horizontal") || c.attr("class").startsWith("picklist vertical"))) {
268+
} else if (c.attr("class") != null && (c.attr("class").indexOf("boolean-radio") > -1 || c.attr("class").indexOf("picklist horizontal") > -1 || c.attr("class").indexOf("picklist vertical") > -1)) {
269269
return this.controlType.Radio;
270270
} else {
271271
return this.controlType.Control;
@@ -502,7 +502,7 @@ Xrm.Portal = {
502502
this.vg = "";
503503

504504
this.getValue = function () {
505-
return this.c.children(":checked").val();
505+
return this.c.find("input:checked").val();
506506
};
507507
this.setValue = function (value) {
508508
this.c.children("[value*=" + value + "]").attr("checked", true);

0 commit comments

Comments
 (0)