{"action":"created","issue":{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/121","repository_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations","labels_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/121/comments","events_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/121/events","html_url":"https://github.com/jwaliszko/ExpressiveAnnotations/issues/121","id":154620019,"number":121,"title":"Hide non-required elements","user":{"login":"rickparrish","id":3360793,"avatar_url":"https://avatars.githubusercontent.com/u/3360793?v=3","gravatar_id":"","url":"https://api.github.com/users/rickparrish","html_url":"https://github.com/rickparrish","followers_url":"https://api.github.com/users/rickparrish/followers","following_url":"https://api.github.com/users/rickparrish/following{/other_user}","gists_url":"https://api.github.com/users/rickparrish/gists{/gist_id}","starred_url":"https://api.github.com/users/rickparrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickparrish/subscriptions","organizations_url":"https://api.github.com/users/rickparrish/orgs","repos_url":"https://api.github.com/users/rickparrish/repos","events_url":"https://api.github.com/users/rickparrish/events{/privacy}","received_events_url":"https://api.github.com/users/rickparrish/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-13T02:17:10Z","updated_at":"2016-05-14T01:07:34Z","closed_at":null,"body":"If a RequiredIf condition evaluates to false, is it possible to hide that element on the form (and then of course show it again when the condition is satisfied)?  Ideally this would be by a callback passing the name of the element to show/hide, since it would actually be a wrapper div with a similar name that I would want to show/hide.\r\n\r\nIf yes, can this be chained?  i.e. question 2 depends on question 1, and question 3 depends on question 2.  So if question 2 gets hidden, question 3 needs to be hidden as well.\r\n\r\nThanks,\r\nRick"},"comment":{"url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/comments/219191622","html_url":"https://github.com/jwaliszko/ExpressiveAnnotations/issues/121#issuecomment-219191622","issue_url":"https://api.github.com/repos/jwaliszko/ExpressiveAnnotations/issues/121","id":219191622,"user":{"login":"rickparrish","id":3360793,"avatar_url":"https://avatars.githubusercontent.com/u/3360793?v=3","gravatar_id":"","url":"https://api.github.com/users/rickparrish","html_url":"https://github.com/rickparrish","followers_url":"https://api.github.com/users/rickparrish/followers","following_url":"https://api.github.com/users/rickparrish/following{/other_user}","gists_url":"https://api.github.com/users/rickparrish/gists{/gist_id}","starred_url":"https://api.github.com/users/rickparrish/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickparrish/subscriptions","organizations_url":"https://api.github.com/users/rickparrish/orgs","repos_url":"https://api.github.com/users/rickparrish/repos","events_url":"https://api.github.com/users/rickparrish/events{/privacy}","received_events_url":"https://api.github.com/users/rickparrish/received_events","type":"User","site_admin":false},"created_at":"2016-05-14T01:07:34Z","updated_at":"2016-05-14T01:07:34Z","body":"Thanks for the quick response!  \r\n\r\nBasing the visibility on the result of computeRequiredIf() wasn't exactly what I needed since the call to modelHelper.ctxEval() is bypassed for elements that have a value, and I want to hide such elements if the RequiredIf expression fails, so I need modelHelper.ctxEval() to be called regardless of whether the element has a value.\r\n\r\nYour change pointed me in the right direction though, so after fiddling around with a few things I think I have it working the way I'd like now...although I only used a small 3 question test form, so I'll find out if it's really working when I try to build something more complex next week.\r\n\r\nhttps://github.com/rickparrish/ExpressiveAnnotations/commit/893c724bf929111c945b1d70c88e3c2f804a891a is the changes I made, if you'd like to have a look.  Hopefully I didn't screw anything up too horribly!"}}