- Open the browser’s developer console
- Turn on angular’s dev mode:
angular.reloadWithDebugInfo();
- 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();