{"action":"created","issue":{"url":"https://api.github.com/repos/XLSForm/pyxform/issues/93","repository_url":"https://api.github.com/repos/XLSForm/pyxform","labels_url":"https://api.github.com/repos/XLSForm/pyxform/issues/93/labels{/name}","comments_url":"https://api.github.com/repos/XLSForm/pyxform/issues/93/comments","events_url":"https://api.github.com/repos/XLSForm/pyxform/issues/93/events","html_url":"https://github.com/XLSForm/pyxform/issues/93","id":190867203,"node_id":"MDU6SXNzdWUxOTA4NjcyMDM=","number":93,"title":"Add appearance=\"label\" to notes","user":{"login":"MartijnR","id":627350,"node_id":"MDQ6VXNlcjYyNzM1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/627350?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnR","html_url":"https://github.com/MartijnR","followers_url":"https://api.github.com/users/MartijnR/followers","following_url":"https://api.github.com/users/MartijnR/following{/other_user}","gists_url":"https://api.github.com/users/MartijnR/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnR/subscriptions","organizations_url":"https://api.github.com/users/MartijnR/orgs","repos_url":"https://api.github.com/users/MartijnR/repos","events_url":"https://api.github.com/users/MartijnR/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnR/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-21T23:36:06Z","updated_at":"2018-06-11T17:43:16Z","closed_at":"2018-06-11T17:43:16Z","author_association":"CONTRIBUTOR","body":"Would like to make a distinction between a readonly text input that shows the input field and a readonly text input that does not show the input field. (1) The use case for showing the field is when a calculation or default value is attached to the readonly text input. (2) The use case for not showing the field is when the user just wants to add some explanatory text or media.\r\n\r\nThus, I think it would be nice if these two questions get a slightly different XForm output:\r\n\r\n| type | name | readonly |\r\n|------|------|----------|\r\n| note | n        |                |\r\n| text  | r         | yes         |\r\n\r\nI am thinking we could use the existing appearance \"label\" and let pyxform add this automatically for questions with type=\"note\". This way we won't have to re-invent anything.\r\n\r\nIf implemented, the following would get exactly the same XForm output:\r\n\r\n| type | name | appearance | readonly |\r\n|------|------|----------|-------------|\r\n| note | n1        |              |  |\r\n| note | n2        | label     | |\r\n| text  | r        | label     | yes |\r\n\r\nThoughts?\r\n\r\nP.S. So far Enketo currently deals with both use cases (1) and (2) by hiding the text input field when the value is empty. However, this wouldn't be (as) sensible for complex readonly widgets (such as geopoint or distress) where the user likely intends for the widget to be shown at all times. So I think it wasn't the right decision in Enketo.\r\n"},"comment":{"url":"https://api.github.com/repos/XLSForm/pyxform/issues/comments/396326179","html_url":"https://github.com/XLSForm/pyxform/issues/93#issuecomment-396326179","issue_url":"https://api.github.com/repos/XLSForm/pyxform/issues/93","id":396326179,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjMyNjE3OQ==","user":{"login":"MartijnR","id":627350,"node_id":"MDQ6VXNlcjYyNzM1MA==","avatar_url":"https://avatars1.githubusercontent.com/u/627350?v=4","gravatar_id":"","url":"https://api.github.com/users/MartijnR","html_url":"https://github.com/MartijnR","followers_url":"https://api.github.com/users/MartijnR/followers","following_url":"https://api.github.com/users/MartijnR/following{/other_user}","gists_url":"https://api.github.com/users/MartijnR/gists{/gist_id}","starred_url":"https://api.github.com/users/MartijnR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MartijnR/subscriptions","organizations_url":"https://api.github.com/users/MartijnR/orgs","repos_url":"https://api.github.com/users/MartijnR/repos","events_url":"https://api.github.com/users/MartijnR/events{/privacy}","received_events_url":"https://api.github.com/users/MartijnR/received_events","type":"User","site_admin":false},"created_at":"2018-06-11T17:43:16Z","updated_at":"2018-06-11T17:43:16Z","author_association":"CONTRIBUTOR","body":"Probably best for users if the client takes care of determining this."}}
{"actor":{"display_login":"MartijnR"}}