Merge pull request #5089 from jlmitch5/fixFieldReadonlys

Fix field readonlys
This commit is contained in:
jlmitch5
2017-02-01 13:16:50 -05:00
committed by GitHub
5 changed files with 5 additions and 2 deletions
@@ -1280,6 +1280,7 @@ angular.module('FormGenerator', [GeneratorHelpers.name, 'Utilities', listGenerat
html += "value=\"" + field.options[i].value + "\" ";
html += "ng-model=\"" + fld + "\" ";
html += (field.ngChange) ? this.attr(field, 'ngChange') : "";
html += (field.ngDisabled) ? `ng-disabled="${field.ngDisabled}"` : "";
html += (field.readonly) ? "disabled " : "";
html += (field.required) ? "required " : "";
html += (field.ngshow) ? "ng-show=\"" + field.ngShow + "\" " : "";