{"action":"created","issue":{"url":"https://api.github.com/repos/xmartlabs/Eureka/issues/327","repository_url":"https://api.github.com/repos/xmartlabs/Eureka","labels_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/327/comments","events_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/327/events","html_url":"https://github.com/xmartlabs/Eureka/issues/327","id":139995955,"number":327,"title":"Replace options with title for display only","user":{"login":"wstudios","id":660143,"avatar_url":"https://avatars.githubusercontent.com/u/660143?v=3","gravatar_id":"","url":"https://api.github.com/users/wstudios","html_url":"https://github.com/wstudios","followers_url":"https://api.github.com/users/wstudios/followers","following_url":"https://api.github.com/users/wstudios/following{/other_user}","gists_url":"https://api.github.com/users/wstudios/gists{/gist_id}","starred_url":"https://api.github.com/users/wstudios/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wstudios/subscriptions","organizations_url":"https://api.github.com/users/wstudios/orgs","repos_url":"https://api.github.com/users/wstudios/repos","events_url":"https://api.github.com/users/wstudios/events{/privacy}","received_events_url":"https://api.github.com/users/wstudios/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/xmartlabs/Eureka/labels/appearance","name":"appearance","color":"5319e7"},{"url":"https://api.github.com/repos/xmartlabs/Eureka/labels/callback:%20onPresent","name":"callback: onPresent","color":"5319e7"},{"url":"https://api.github.com/repos/xmartlabs/Eureka/labels/row:%20MultipleSelectorRow","name":"row: MultipleSelectorRow","color":"5319e7"},{"url":"https://api.github.com/repos/xmartlabs/Eureka/labels/type:%20enhancement","name":"type: enhancement","color":"fbca04"}],"state":"closed","locked":false,"assignee":{"login":"mtnbarreto","id":1746532,"avatar_url":"https://avatars.githubusercontent.com/u/1746532?v=3","gravatar_id":"","url":"https://api.github.com/users/mtnbarreto","html_url":"https://github.com/mtnbarreto","followers_url":"https://api.github.com/users/mtnbarreto/followers","following_url":"https://api.github.com/users/mtnbarreto/following{/other_user}","gists_url":"https://api.github.com/users/mtnbarreto/gists{/gist_id}","starred_url":"https://api.github.com/users/mtnbarreto/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mtnbarreto/subscriptions","organizations_url":"https://api.github.com/users/mtnbarreto/orgs","repos_url":"https://api.github.com/users/mtnbarreto/repos","events_url":"https://api.github.com/users/mtnbarreto/events{/privacy}","received_events_url":"https://api.github.com/users/mtnbarreto/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2016-03-10T20:10:24Z","updated_at":"2016-06-07T10:47:55Z","closed_at":"2016-03-10T21:35:03Z","body":"Hi, I have some MultipleSelectorRows that contains options with integers. I need to replace the integers when displaying but the values must remain integers when the form is submitted.\r\nThis is an example:\r\n\r\n`            <<< MultipleSelectorRow<String>{\r\n                $0.title = \"Reports\"\r\n                $0.tag = \"reports\"\r\n                $0.options = [1,2,5,6,8,9]\r\n}`\r\n\r\nAs you can see, when the form is loaded it will allow users to select 1, 2, 5 and so on but what i want is for the user to see the titles for those so 1 becomes Report Test, 2 = Report Test Name etc.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/xmartlabs/Eureka/issues/comments/224245245","html_url":"https://github.com/xmartlabs/Eureka/issues/327#issuecomment-224245245","issue_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/327","id":224245245,"user":{"login":"avalla","id":986614,"avatar_url":"https://avatars.githubusercontent.com/u/986614?v=3","gravatar_id":"","url":"https://api.github.com/users/avalla","html_url":"https://github.com/avalla","followers_url":"https://api.github.com/users/avalla/followers","following_url":"https://api.github.com/users/avalla/following{/other_user}","gists_url":"https://api.github.com/users/avalla/gists{/gist_id}","starred_url":"https://api.github.com/users/avalla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avalla/subscriptions","organizations_url":"https://api.github.com/users/avalla/orgs","repos_url":"https://api.github.com/users/avalla/repos","events_url":"https://api.github.com/users/avalla/events{/privacy}","received_events_url":"https://api.github.com/users/avalla/received_events","type":"User","site_admin":false},"created_at":"2016-06-07T10:47:55Z","updated_at":"2016-06-07T10:47:55Z","body":"I cannot understand how to do, here is my code:\r\n\r\n`\r\n    let countries = [ \"uk\" : \"United Kingdom\", \"fr\" : \"France\", \"us\" : \"United States\"]\r\n    form +++ Section(\"Required fields\".uppercaseString)\r\n      <<< MultipleSelectorRow<String>(\"countries\") { row in\r\n      row.title = \"Countries\"\r\n      row.options = countries.map { $0.0 }\r\n      // Show the labels of selected values\r\n      row.displayValueFor  = {\r\n        if let t = $0 {\r\n          return t.map({ countries[$0]! }).joinWithSeparator(\", \")\r\n        }\r\n        return nil\r\n      }\r\n      row.onPresent({ from, to in\r\n        // Add the label of the value on the right side of the cell after selection\r\n        to.selectableRowCellUpdate = { cell, row in\r\n          row.displayValueFor = {\r\n            val in\r\n            if let value = val {\r\n              return countries[value]\r\n            }\r\n            return nil\r\n          }\r\n        }\r\n      })\r\n    }\r\n\r\n`\r\n\r\n\r\n![screenshot 2016-06-07 12 45 13](https://cloud.githubusercontent.com/assets/986614/15855102/f3cf4080-2cad-11e6-8329-9e8bb6342c96.png)\r\n![screenshot 2016-06-07 12 45 19](https://cloud.githubusercontent.com/assets/986614/15855108/f7dbece6-2cad-11e6-920b-f8214690d0b6.png)\r\n![screenshot 2016-06-07 12 45 25](https://cloud.githubusercontent.com/assets/986614/15855112/fcd891ea-2cad-11e6-829c-496d9cab9236.png)\r\n"}}
{"actor":{"display_login":"avalla"}}