{"action":"created","issue":{"url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/248","repository_url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form","labels_url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/248/labels{/name}","comments_url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/248/comments","events_url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/248/events","html_url":"https://github.com/dschnelldavis/angular2-json-schema-form/issues/248","id":310436299,"node_id":"MDU6SXNzdWUzMTA0MzYyOTk=","number":248,"title":"Need Multiple condition check","user":{"login":"subratawebops","id":15680580,"node_id":"MDQ6VXNlcjE1NjgwNTgw","avatar_url":"https://avatars0.githubusercontent.com/u/15680580?v=4","gravatar_id":"","url":"https://api.github.com/users/subratawebops","html_url":"https://github.com/subratawebops","followers_url":"https://api.github.com/users/subratawebops/followers","following_url":"https://api.github.com/users/subratawebops/following{/other_user}","gists_url":"https://api.github.com/users/subratawebops/gists{/gist_id}","starred_url":"https://api.github.com/users/subratawebops/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/subratawebops/subscriptions","organizations_url":"https://api.github.com/users/subratawebops/orgs","repos_url":"https://api.github.com/users/subratawebops/repos","events_url":"https://api.github.com/users/subratawebops/events{/privacy}","received_events_url":"https://api.github.com/users/subratawebops/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-04-02T09:11:53Z","updated_at":"2018-09-13T07:04:01Z","closed_at":null,"author_association":"NONE","body":"## Issue type\r\n```\r\n\"switch_1\"\r\n\"switch_2\",\r\n    {\r\n      \"key\": \"email\",\r\n      \"condition\": \"model.switch_1\",\r\n      \"required\": true\r\n    }\r\n\r\n```\r\n## Current behavior\r\n```\r\n    {\r\n      \"key\": \"email\",\r\n      \"condition\": \"model.switch_1\",\r\n      \"required\": true\r\n    }\r\n```\r\n\r\n\r\n## Expected behavior\r\n```\r\n    {\r\n      \"key\": \"email\",\r\n      \"condition\": \"model.switch_1 && model.switch_2\",\r\n      \"required\": true\r\n    }\r\n```\r\n\r\nHow can I use multiple condiiton?"},"comment":{"url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/comments/420905476","html_url":"https://github.com/dschnelldavis/angular2-json-schema-form/issues/248#issuecomment-420905476","issue_url":"https://api.github.com/repos/dschnelldavis/angular2-json-schema-form/issues/248","id":420905476,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDkwNTQ3Ng==","user":{"login":"ramm24","id":6055372,"node_id":"MDQ6VXNlcjYwNTUzNzI=","avatar_url":"https://avatars2.githubusercontent.com/u/6055372?v=4","gravatar_id":"","url":"https://api.github.com/users/ramm24","html_url":"https://github.com/ramm24","followers_url":"https://api.github.com/users/ramm24/followers","following_url":"https://api.github.com/users/ramm24/following{/other_user}","gists_url":"https://api.github.com/users/ramm24/gists{/gist_id}","starred_url":"https://api.github.com/users/ramm24/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramm24/subscriptions","organizations_url":"https://api.github.com/users/ramm24/orgs","repos_url":"https://api.github.com/users/ramm24/repos","events_url":"https://api.github.com/users/ramm24/events{/privacy}","received_events_url":"https://api.github.com/users/ramm24/received_events","type":"User","site_admin":false},"created_at":"2018-09-13T07:04:01Z","updated_at":"2018-09-13T07:04:01Z","author_association":"NONE","body":"@stretau you will need to recursively look into your json and add a reference to a function.\r\n\r\nYour Json could be have something like this.\r\n```\r\n\"condition\":  \"functionName\"\r\n```\r\nthen just look for it using a recursive function and replace the \"functionName\" with the actual function reference.\r\n\r\n```\r\nfunction functionName(model)  {\r\n    return model.requestAction === 'Add';\r\n}\r\n```"}}
{"actor":{"display_login":"ramm24"}}