{"action":"opened","issue":{"url":"https://api.github.com/repos/enketo/enketo-core/issues/336","labels_url":"https://api.github.com/repos/enketo/enketo-core/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/enketo/enketo-core/issues/336/comments","events_url":"https://api.github.com/repos/enketo/enketo-core/issues/336/events","html_url":"https://github.com/enketo/enketo-core/issues/336","id":112117443,"number":336,"title":"Provide method for obtaining Model without non-`relevant` fields","user":{"login":"alxndrsn","id":191496,"avatar_url":"https://avatars.githubusercontent.com/u/191496?v=3","gravatar_id":"","url":"https://api.github.com/users/alxndrsn","html_url":"https://github.com/alxndrsn","followers_url":"https://api.github.com/users/alxndrsn/followers","following_url":"https://api.github.com/users/alxndrsn/following{/other_user}","gists_url":"https://api.github.com/users/alxndrsn/gists{/gist_id}","starred_url":"https://api.github.com/users/alxndrsn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxndrsn/subscriptions","organizations_url":"https://api.github.com/users/alxndrsn/orgs","repos_url":"https://api.github.com/users/alxndrsn/repos","events_url":"https://api.github.com/users/alxndrsn/events{/privacy}","received_events_url":"https://api.github.com/users/alxndrsn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-19T10:30:34Z","updated_at":"2015-10-19T10:30:34Z","closed_at":null,"body":"> #### 6.1.4 The relevant Property\r\n> Description: indicates whether the model item is currently _relevant_. Instance data nodes with this property evaluating to `false` are unavailable in the user interface and can be removed from submission serialization.\r\n> — _http://www.w3.org/TR/xforms/#model-prop-relevant_\r\n\r\nIt would be very helpful to have a method similar to `Form.getDataStr()` which would allow fields with `relevant` evaluating `false` excluded.\r\n\r\nAlternatively, `FormModel.getStr()` could be modified to always exclude these fields without breaking the spec.  However, this might have surprising effects if some users are relying on non-relevant data appearing in their form submission."}}