{"action":"closed","issue":{"url":"https://api.github.com/repos/evolution-cms/evolution/issues/529","repository_url":"https://api.github.com/repos/evolution-cms/evolution","labels_url":"https://api.github.com/repos/evolution-cms/evolution/issues/529/labels{/name}","comments_url":"https://api.github.com/repos/evolution-cms/evolution/issues/529/comments","events_url":"https://api.github.com/repos/evolution-cms/evolution/issues/529/events","html_url":"https://github.com/evolution-cms/evolution/issues/529","id":299885243,"number":529,"title":"Question: FormLister Multiple Select","user":{"login":"modxuser","id":1859868,"avatar_url":"https://avatars0.githubusercontent.com/u/1859868?v=4","gravatar_id":"","url":"https://api.github.com/users/modxuser","html_url":"https://github.com/modxuser","followers_url":"https://api.github.com/users/modxuser/followers","following_url":"https://api.github.com/users/modxuser/following{/other_user}","gists_url":"https://api.github.com/users/modxuser/gists{/gist_id}","starred_url":"https://api.github.com/users/modxuser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/modxuser/subscriptions","organizations_url":"https://api.github.com/users/modxuser/orgs","repos_url":"https://api.github.com/users/modxuser/repos","events_url":"https://api.github.com/users/modxuser/events{/privacy}","received_events_url":"https://api.github.com/users/modxuser/received_events","type":"User","site_admin":false},"labels":[{"id":53313173,"url":"https://api.github.com/repos/evolution-cms/evolution/labels/Question","name":"Question","color":"d4c5f9","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-02-23T23:46:25Z","updated_at":"2018-02-28T22:18:09Z","closed_at":"2018-02-28T22:18:09Z","author_association":"NONE","body":"I am trying to rebuild a multiple select item from eForm into FormLister but I am sadly failing miserably.\r\n\r\nThis is my eForm select item\r\n```\r\n<select name=\"multisel[]\" id=\"multisel[]\" multiple=\"multiple\"eform=\"multisel:listbox:1\">\r\n  <option value=\"1\">Test 1</option>\r\n  <option value=\"2\">Test 2</option>\r\n  <option value=\"3\">Test 3</option>\r\n  <option value=\"4\">Test 4</option>\r\n  <option value=\"5\">Test 5</option>\r\n</select>\r\n```\r\nThis call lets the end-user select multiple fields and all the selected fields are displayed in the form report\r\n\r\nI have tried the following\r\n\r\nSolution 1\r\n```\r\n<label>Multiple Select</label>\r\n<select name=\"multisel\" id=\"multisel\" multiple=\"multiple\">\r\n  <option value=\"1\">Test 1</option>\r\n  <option value=\"2\">Test 2</option>\r\n  <option value=\"3\">Test 3</option>\r\n  <option value=\"4\">Test 4</option>\r\n  <option value=\"5\">Test 5</option>\r\n</select>\r\n```\r\nSolution 2\r\n```\r\n<label>Multiple Select</label>\r\n<select name=\"multisel\" id=\"multisel\" multiple=\"multiple\">\r\n  <option value=\"1\" [+s.multisel.1+]>Test 1</option>\r\n  <option value=\"2\" [+s.multisel.2+]>Test 2</option>\r\n  <option value=\"3\" [+s.multisel.3+]>Test 3</option>\r\n  <option value=\"4\" [+s.multisel.4+]>Test 4</option>\r\n  <option value=\"5\" [+s.multisel.5+]>Test 5</option>\r\n</select>\r\n```\r\nSolution 1 + 2 both give me the same result - they always **only** output the last item selected\r\n\r\nAfter researching the net a little and finding old references to eForm, I found a thread mentioning that you need to add \"[]\" to the name for an array (which I have in my original call)\r\n\r\nSo, this is what I came up with\r\n\r\nSolution 3\r\n```\r\n<label>Multiple Select</label>\r\n<select name=\"multisel[]\" id=\"multisel[]\" multiple=\"multiple\">\r\n  <option value=\"1\">Test 1</option>\r\n  <option value=\"2\">Test 2</option>\r\n  <option value=\"3\">Test 3</option>\r\n  <option value=\"4\">Test 4</option>\r\n  <option value=\"5\">Test 5</option>\r\n</select>\r\n```\r\nSolution 4\r\n```\r\n<label>Multiple Select</label>\r\n<select name=\"multisel[]\" id=\"multisel[]\" multiple=\"multiple\">\r\n  <option value=\"1\" [+s.multisel[].1+]>Test 1</option>\r\n  <option value=\"2\" [+s.multisel[].2+]>Test 2</option>\r\n  <option value=\"3\" [+s.multisel[].3+]>Test 3</option>\r\n  <option value=\"4\" [+s.multisel[].4+]>Test 4</option>\r\n  <option value=\"5\" [+s.multisel[].5+]>Test 5</option>\r\n</select>\r\n```\r\nBoth solution 3 + 4 don't output anything\r\n\r\nI have gone through the documentation + examples found in the docs folder, but I can't find a reference to multiple select elements\r\n\r\nAny and all help is appreciated :)"}}
{"actor":{"display_login":"Pathologic"}}