diff --git a/guacamole/src/main/webapp/app/form/directives/formField.js b/guacamole/src/main/webapp/app/form/directives/formField.js index c928af112..96dedc890 100644 --- a/guacamole/src/main/webapp/app/form/directives/formField.js +++ b/guacamole/src/main/webapp/app/form/directives/formField.js @@ -183,7 +183,7 @@ angular.module('form').directive('guacFormField', [function formField() { // Coerce numeric strings to numbers if ($scope.field.type === 'NUMERIC') - $scope.typedValue = (modelValue ? Number($scope.field.value) : null); + $scope.typedValue = (modelValue ? Number(modelValue) : null); // Coerce boolean strings to boolean values else if ($scope.field.type === 'BOOLEAN')