docs: protected void updateFieldValidationStatus(I_CmsFormField field, CmsValidationResult result) {
  
          if (result.hasNewValue()) {
              if (field.getModel() != null) {
                  field.getModel().setValue(result.getNewValue(), true);
              }
              field.getWidget().setFormValueAsString(result.getNewValue());
          }
          String errorMessage = result.getErrorMessage();
          field.getWidget().setErrorMessage(result.getErrorMessage());
          field.setValidationStatus(
              errorMessage == null ? I_CmsFormField.ValidationStatus.valid : I_CmsFormField.ValidationStatus.invalid);
      }