code: function() {
        try {
           // Close previous field
           if(this.fieldValue) {
              this.fieldValue.close();
              this.fieldValue.destroy();
              delete this.fieldValue;
              this.fieldValueWrapper.innerHTML = '';
           }
        
           // Re-build the fieldValue
           var fieldOptions = this.group.getValue();
           
           fieldOptions.type = this.getValue().type;
           fieldOptions.parentEl = this.fieldValueWrapper;
           
           this.fieldValue = inputEx(fieldOptions,this);
        
           // Refire the event when the fieldValue is updated
           this.fieldValue.updatedEvt.subscribe(this.fireUpdatedEvt, this, true);
        }
        catch(ex) {
           console.log("Error while updateFieldValue", ex.message);
        }
     }
docs: Update the fieldValue