{"action":"opened","issue":{"url":"https://api.github.com/repos/plomino/Plomino/issues/631","labels_url":"https://api.github.com/repos/plomino/Plomino/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/plomino/Plomino/issues/631/comments","events_url":"https://api.github.com/repos/plomino/Plomino/issues/631/events","html_url":"https://github.com/plomino/Plomino/issues/631","id":89732219,"number":631,"title":"hidewhens are confusing","user":{"login":"djay","id":41700,"avatar_url":"https://avatars.githubusercontent.com/u/41700?v=3","gravatar_id":"","url":"https://api.github.com/users/djay","html_url":"https://github.com/djay","followers_url":"https://api.github.com/users/djay/followers","following_url":"https://api.github.com/users/djay/following{/other_user}","gists_url":"https://api.github.com/users/djay/gists{/gist_id}","starred_url":"https://api.github.com/users/djay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djay/subscriptions","organizations_url":"https://api.github.com/users/djay/orgs","repos_url":"https://api.github.com/users/djay/repos","events_url":"https://api.github.com/users/djay/events{/privacy}","received_events_url":"https://api.github.com/users/djay/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-20T07:32:25Z","updated_at":"2015-06-20T07:32:25Z","closed_at":null,"body":"# User problem\r\n\r\nI've noticed several common errors with hidewhens that make it hard to use\r\n1. Mostly people I saw users have something hidden by default and have it appear when a certain option is picked. They are thinking more in terms of a \"showwhen\"\r\n2. The conditions for checkboxes and radio buttons are different. Checkboxes are lists and radios are single values and due to no type checking hidewhen will just get stuck as true or false.\r\n\r\n# options\r\n1. The formula helper idea in https://github.com/plomino/Plomino/issues/618 would allow for a helper for common cases like show when field X, option Y is picked. This should be out of the box I think\r\n2. change hidewhens to showwhens.\r\n  - con: backwards compatibility.\r\n3. introduce not: into hidewhen syntax and UI. This would let you create hidewhens that match the showwhen logic. e.g. hidewhen start:not:over_18.\r\n  - also means you only have to create a single hidewhen for a yes/no case which is nice.\r\n4. Some kind of way to debug? For instance a debug mode that dynamically shows all current picked values as hidewhen type formulas so you can just cut and paste?\r\n5. ?\r\n\r\n\r\n"}}