// choice field object Zymonic.Field.Choice = function() {}; // do the inheritance Zymonic.Field.Choice.prototype = new Zymonic.Field.Field(); Zymonic.Field.Choice.prototype.constructor = this; // TODO: add other functionality to this // override getValue as ChoiceFields always have an input of value, hidden if display only Zymonic.Field.Choice.prototype.getValue = function(display_name) { value = this.jquery().val(); // apply any field fills var ffc_value = this.runFieldFillCalculations(value); // if value has changed then // set the changed value on the field itself so the user can see it if (ffc_value != null && ffc_value != value) { value = ffc_value; this.setValue(value, true); } if (display_name) { var options = this.getOptions(); for (var i=0; i