{"action":"created","issue":{"url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/3","labels_url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/3/comments","events_url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/3/events","html_url":"https://github.com/mmikkel/Reasons-Craft/issues/3","id":91102700,"number":3,"title":"Checkboxes are not working. Multi-select does not work if multiple items are selected.","user":{"login":"idahotallpaul","id":296811,"avatar_url":"https://avatars.githubusercontent.com/u/296811?v=3","gravatar_id":"","url":"https://api.github.com/users/idahotallpaul","html_url":"https://github.com/idahotallpaul","followers_url":"https://api.github.com/users/idahotallpaul/followers","following_url":"https://api.github.com/users/idahotallpaul/following{/other_user}","gists_url":"https://api.github.com/users/idahotallpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/idahotallpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idahotallpaul/subscriptions","organizations_url":"https://api.github.com/users/idahotallpaul/orgs","repos_url":"https://api.github.com/users/idahotallpaul/repos","events_url":"https://api.github.com/users/idahotallpaul/events{/privacy}","received_events_url":"https://api.github.com/users/idahotallpaul/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-25T23:26:45Z","updated_at":"2015-06-26T18:18:17Z","closed_at":null,"body":"I have a list of business categories. Businesses can belong to more than one category, so for example, one business can be a venue and a restaurant. So I need to be able to display additional fields based on each category selected. For example, if \"venue\" is selected, then display a table field to enter details about the different rooms in the venue. If \"restaurant\" is selected, display a dropdown of different types of restaurant to choose from.\r\n\r\nI tried checkboxes, and wether it was one checkbox or many, I could not get fields to be displayed based on what was selected.\r\n\r\nI tried a multi-select with the same categories, and if you choose a single category, the inputs would be revealed. Select multiple and the interface would be hidden.\r\n\r\nNot sure why the checkbox doesn't work, but on the multi-select, my guess is it's checking to see if the value for the field \"businessType\" equals \"venue\". When only venue is selected, it evals to true, but if it equals \"venue, restaurant\" it is false. Perhaps it should check to see if the array *includes* \"venue\"?\r\n\r\nThanks.\r\n"},"comment":{"url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/comments/115822877","html_url":"https://github.com/mmikkel/Reasons-Craft/issues/3#issuecomment-115822877","issue_url":"https://api.github.com/repos/mmikkel/Reasons-Craft/issues/3","id":115822877,"user":{"login":"idahotallpaul","id":296811,"avatar_url":"https://avatars.githubusercontent.com/u/296811?v=3","gravatar_id":"","url":"https://api.github.com/users/idahotallpaul","html_url":"https://github.com/idahotallpaul","followers_url":"https://api.github.com/users/idahotallpaul/followers","following_url":"https://api.github.com/users/idahotallpaul/following{/other_user}","gists_url":"https://api.github.com/users/idahotallpaul/gists{/gist_id}","starred_url":"https://api.github.com/users/idahotallpaul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idahotallpaul/subscriptions","organizations_url":"https://api.github.com/users/idahotallpaul/orgs","repos_url":"https://api.github.com/users/idahotallpaul/repos","events_url":"https://api.github.com/users/idahotallpaul/events{/privacy}","received_events_url":"https://api.github.com/users/idahotallpaul/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T18:18:17Z","updated_at":"2015-06-26T18:18:17Z","body":"You bet. How far off are you from having categories implemented? That would be the ideal case for me, as categorization of businesses and filtering by those categories of is the ultimate goal. \r\n\r\nThanks."}}