{"action":"created","issue":{"url":"https://api.github.com/repos/hyperoslo/Form/issues/359","labels_url":"https://api.github.com/repos/hyperoslo/Form/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/hyperoslo/Form/issues/359/comments","events_url":"https://api.github.com/repos/hyperoslo/Form/issues/359/events","html_url":"https://github.com/hyperoslo/Form/issues/359","id":69586849,"number":359,"title":"Sub Questions Update/Save Issue","user":{"login":"charbelhass","id":9074156,"avatar_url":"https://avatars.githubusercontent.com/u/9074156?v=3","gravatar_id":"","url":"https://api.github.com/users/charbelhass","html_url":"https://github.com/charbelhass","followers_url":"https://api.github.com/users/charbelhass/followers","following_url":"https://api.github.com/users/charbelhass/following{/other_user}","gists_url":"https://api.github.com/users/charbelhass/gists{/gist_id}","starred_url":"https://api.github.com/users/charbelhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbelhass/subscriptions","organizations_url":"https://api.github.com/users/charbelhass/orgs","repos_url":"https://api.github.com/users/charbelhass/repos","events_url":"https://api.github.com/users/charbelhass/events{/privacy}","received_events_url":"https://api.github.com/users/charbelhass/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperoslo/Form/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/hyperoslo/Form/labels/medium","name":"medium","color":"eb6421"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-04-20T13:27:20Z","updated_at":"2015-04-22T14:15:10Z","closed_at":"2015-04-22T13:16:16Z","body":"Hello everyone!\r\nI created my form with a save button,\r\nI used this code to log the results i want to save,\r\n```Objective-C\r\n- (void) saveSurvey\r\n{\r\n    NSDictionary *valuesDictionary = [self.dataSource values];\r\n    NSLog(@\"%@\",valuesDictionary);\r\n}\r\n```\r\nIn this Gif i show an issue that if i have a field of type selection that has 3 options, the first one shows a subquestion, the second one shows another subquestion, the last one show another subquestion also.\r\nI hit the save every time when change the selected value, as you can see in the log, the old answer of the old subquestion is not removed, so my survey result must contains 9 answers which is in the first log,\r\nthen it became 10, then 11 because when changing the selection from dropdown menu, the subquestion answer is not removed. Hope my explanation is clear.\r\nThose are the ids of each field by name.\r\n1\tActivity Type\r\n2\tDate of Activity\r\n3\tTopic of the Activity\r\n4\tSpeaker\r\n5\tTargeted Products\r\n7\tAdditional Comments and observations\r\n100\tRate Experience\r\n101\tWhy?\r\n102\tOk, Why?\r\n103\tSelect One\r\n104\tSex\r\n105\tWhy?\r\n\r\nif rate experience was great, 'select one' is one. when changed rate experience to average and put 'OK, Why' to Dunno and hit the save, 'Select One' question must be set to null.\r\n \r\n![2uqpgohn80](https://cloud.githubusercontent.com/assets/9074156/7230812/d53f9946-e779-11e4-9066-dac7350ee399.gif)\r\n\r\nI think this one must be critical"},"comment":{"url":"https://api.github.com/repos/hyperoslo/Form/issues/comments/95197179","html_url":"https://github.com/hyperoslo/Form/issues/359#issuecomment-95197179","issue_url":"https://api.github.com/repos/hyperoslo/Form/issues/359","id":95197179,"user":{"login":"charbelhass","id":9074156,"avatar_url":"https://avatars.githubusercontent.com/u/9074156?v=3","gravatar_id":"","url":"https://api.github.com/users/charbelhass","html_url":"https://github.com/charbelhass","followers_url":"https://api.github.com/users/charbelhass/followers","following_url":"https://api.github.com/users/charbelhass/following{/other_user}","gists_url":"https://api.github.com/users/charbelhass/gists{/gist_id}","starred_url":"https://api.github.com/users/charbelhass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charbelhass/subscriptions","organizations_url":"https://api.github.com/users/charbelhass/orgs","repos_url":"https://api.github.com/users/charbelhass/repos","events_url":"https://api.github.com/users/charbelhass/events{/privacy}","received_events_url":"https://api.github.com/users/charbelhass/received_events","type":"User","site_admin":false},"created_at":"2015-04-22T14:15:09Z","updated_at":"2015-04-22T14:15:09Z","body":"@3lvis this one is only happening if a selection has a sub question of type selection!"}}