How can I debug the values of a XForm in progress?

  1. Open the browser’s developer console
  2. Turn on angular’s dev mode: angular.reloadWithDebugInfo();
  3. Then get the xform…
  • from an Action form
    angular.element('/*/div[id=report-form]/*/form').scope().$parent.form.getModel().getStr()
  • or from a Person or Place form
    angular.element('/*/div[id=report-form]/*/form').scope().$parent.enketoContact.formInstance.getModel().getStr();
3 Likes