{"action":"created","issue":{"url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/61","repository_url":"https://api.github.com/repos/xpertbot/craft-wheelform","labels_url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/61/comments","events_url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/61/events","html_url":"https://github.com/xpertbot/craft-wheelform/issues/61","id":379001079,"node_id":"MDU6SXNzdWUzNzkwMDEwNzk=","number":61,"title":"Wheel form exports only id,date_created","user":{"login":"andreimoment","id":6190,"node_id":"MDQ6VXNlcjYxOTA=","avatar_url":"https://avatars2.githubusercontent.com/u/6190?v=4","gravatar_id":"","url":"https://api.github.com/users/andreimoment","html_url":"https://github.com/andreimoment","followers_url":"https://api.github.com/users/andreimoment/followers","following_url":"https://api.github.com/users/andreimoment/following{/other_user}","gists_url":"https://api.github.com/users/andreimoment/gists{/gist_id}","starred_url":"https://api.github.com/users/andreimoment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreimoment/subscriptions","organizations_url":"https://api.github.com/users/andreimoment/orgs","repos_url":"https://api.github.com/users/andreimoment/repos","events_url":"https://api.github.com/users/andreimoment/events{/privacy}","received_events_url":"https://api.github.com/users/andreimoment/received_events","type":"User","site_admin":false},"labels":[{"id":826867701,"node_id":"MDU6TGFiZWw4MjY4Njc3MDE=","url":"https://api.github.com/repos/xpertbot/craft-wheelform/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-09T02:45:39Z","updated_at":"2018-11-09T22:59:52Z","closed_at":"2018-11-09T03:45:51Z","author_association":"NONE","body":"Hi, I successfully integrated the wheelform into a CraftCMS 3 install -- thank you for an awesome plugin!\r\n\r\nThe form receives data, sends emails and shows the data in the back end, but exports result in this:\r\n\r\n`id,date_created`\r\n\r\nNothing else appears in the csv file!\r\n\r\nII am making sure to export data from the date of the entry (today and yesterday in this case)\r\n\r\nHow can I possibly troubleshoot this?\r\n\r\nThank you!\r\n\r\n### Here's one of the entries:\r\n\r\n![screen shot 2018-11-08 at 6 42 10 pm](https://user-images.githubusercontent.com/6190/48240039-17401a80-e386-11e8-9cdf-fc4aff9fff2b.png)\r\n\r\n\r\n### Here are the form fields:\r\n\r\n```\r\n[\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"Email\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"email\",\r\n  \"type\": \"email\",\r\n  \"required\": 1,\r\n  \"index_view\": 0,\r\n  \"order\": 5,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"first_name\",\r\n  \"type\": \"text\",\r\n  \"required\": 1,\r\n  \"index_view\": 0,\r\n  \"order\": 2,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"inquiry\",\r\n  \"type\": \"textarea\",\r\n  \"required\": 1,\r\n  \"index_view\": 0,\r\n  \"order\": 7,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"School Name\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"school_name\",\r\n  \"type\": \"text\",\r\n  \"required\": 1,\r\n  \"index_view\": 0,\r\n  \"order\": 4,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"athlete_name\",\r\n  \"type\": \"hidden\",\r\n  \"required\": 0,\r\n  \"index_view\": 0,\r\n  \"order\": 1,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"last_name\",\r\n  \"type\": \"text\",\r\n  \"required\": 1,\r\n  \"index_view\": 0,\r\n  \"order\": 3,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"phone\",\r\n  \"type\": \"text\",\r\n  \"required\": 0,\r\n  \"index_view\": 0,\r\n  \"order\": 6,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"receive_updates\",\r\n  \"type\": \"checkbox\",\r\n  \"required\": 0,\r\n  \"index_view\": 0,\r\n  \"order\": 8,\r\n  \"active\": 1\r\n},\r\n{\r\n  \"options\":\r\n  {\r\n    \"label\": \"\",\r\n    \"containerClass\": \"\",\r\n    \"fieldClass\": \"\",\r\n    \"validate\": \"0\",\r\n    \"selectEmpty\": \"0\"\r\n  },\r\n  \"name\": \"updates_for_sport\",\r\n  \"type\": \"hidden\",\r\n  \"required\": 0,\r\n  \"index_view\": 0,\r\n  \"order\": 9,\r\n  \"active\": 1\r\n}]\r\n```\r\n\r\n### and here's the mark up\r\n\r\n```\r\n{% macro errorList(errors) %}\r\n    {% if errors %}\r\n            {% for error in errors %}\r\n                <small class=\"form-text text-danger\">{{ error }}</small>\r\n            {% endfor %}\r\n    {% endif %}\r\n{% endmacro %}\r\n\r\n\r\n{% from _self import errorList %}\r\n\r\n<div class=\"mt-4\"><a class=\"btn btn-success btn-sml {% if errors is defined %}hidden{% endif %}\" data-js-item=\"show-contact-form-button\" data-js-show-item=\"athlete-contact-form\" href=\"#\">Send an inquiry</a></div>\r\n\r\n{% if craft.app.session.hasFlash('notice') %}\r\n    <div class=\"alert alert-success mt-4\" role=\"alert\">{{ craft.app.session.getFlash('notice') }}</div>\r\n{% endif %}\r\n\r\n<div class=\"mt-4 {% if not errors is defined  %}hidden{% endif %}\" data-js-item=\"athlete-contact-form\">\r\n    <div class=\"card text-left\">\r\n        <div class=\"card-header text-center\">\r\n            <h3 class=\"mt-3\">Send an inquiry to {{entry.firstName}} {{entry.lastName}}</h3>\r\n\r\n        </div>\r\n        <div class=\"card-body\">\r\n            {% if errors is defined %}\r\n              <div class=\"alert alert-danger\" role=\"alert\">Please correct the form input and submit again.</div>\r\n            {% endif %}\r\n\r\n            <form method=\"post\" action=\"\" accept-charset=\"UTF-8\" novalidate=\"\" enctype=\"multipart/form-data\">\r\n\r\n                {{ csrfInput() }}\r\n                <input type=\"hidden\" name=\"action\" value=\"wheelform/message/send\">\r\n                <input type=\"hidden\" name=\"form_id\" value=\"1\">\r\n                {% set form_redirect = \"/athletes/#{entry.slug}\" %}\r\n                <input type=\"hidden\" name=\"redirect\" value=\"{{ form_redirect|hash }}\">\r\n                <input type=\"hidden\" name=\"updates_for_sport\" value=\"{{ entry.sportCategory[0].title }}\">\r\n                <input type=\"hidden\" name=\"athlete_name\" value=\"{{ entry.title }}\">\r\n\r\n                <div class=\"form-row\">\r\n                    <div class=\"col-md-6 mt-3\"><label for=\"first_name\"> First Name</label><input class=\"form-control\" id=\"first_name\" name=\"first_name\" type=\"text\" value=\"{{ values['first_name'] ?? '' }}\">\r\n                      {{ errors['first_name'] is defined ? errorList(errors['first_name']) }}\r\n                    </div>\r\n\r\n                    <div class=\"col-md-6 mt-3\"><label for=\"last_name\">Last Name</label><input class=\"form-control\" id=\"last_name\" name=\"last_name\" type=\"text\" value=\"{{ values['last_name'] ?? '' }}\"></div>\r\n                </div>\r\n\r\n                <div class=\"form-row\">\r\n                    <div class=\"col-md-6 mt-3\"><label for=\"email\">Email</label><input class=\"form-control\" id=\"email\" name=\"email\" type=\"email\" value=\"{{ values['email'] ?? '' }}\"><small class=\"form-text text-muted\">Please use your .edu email address</small>\r\n                      {{ errors['email'] is defined ? errorList(errors['email']) }}\r\n                    </div>\r\n\r\n                    <div class=\"col-md-6 mt-3\"><label for=\"phone\">Phone</label><input class=\"form-control\" id=\"phone\" name=\"phone\" type=\"text\" value=\"{{ values['phone'] ?? '' }}\">\r\n                      {{ errors['phone'] is defined ? errorList(errors['phone']) }}\r\n                    </div>\r\n                </div>\r\n                <div class=\"form-group mt-3\"><label for=\"school_name\">School Name</label><input class=\"form-control\" id=\"school_name\" name=\"school_name\" type=\"text\" value=\"{{ values['school_name'] ?? '' }}\">\r\n                  {{ errors['school_name'] is defined ? errorList(errors['school_name']) }}\r\n                </div>\r\n\r\n                <div class=\"form-group mt-3\"><label for=\"inquiry\">Your Inquiry</label><textarea class=\"form-control\" id=\"inquiry\" name=\"inquiry\" rows=\"3\" type=\"text\">{{ values['inquiry'] ?? '' }}</textarea>\r\n                  {{ errors['inquiry'] is defined ? errorList(errors['inquiry']) }}\r\n                </div>\r\n\r\n\r\n                <div class=\"form-check mt-3\"><input class=\"form-check-input\" id=\"receive_updates\" name=\"receive_updates[]\" value=\"yes\" type=\"checkbox\" {% if values is defined and values['receive_updates'] is defined and 'yes' in values['receive_updates'] %} checked {% endif %} ><label class=\"form-check-label\" for=\"receive_updates\">Notify me about similar athletes ({{ entry.sportCategory[0].title }})</label>\r\n\r\n                </div>\r\n                <div class=\"mt-4\">\r\n                <button class=\"btn btn-primary\" type=\"submit\"> Submit Inquiry</button> <span class=\"ml-4 text-black-50\">or</span>  <a class=\"btn btn-link\" href=\"#\" data-js-hide-item=\"athlete-contact-form\">Cancel</a>\r\n              </div>\r\n            </form>\r\n        </div>\r\n        <div class=\"card-footer\"><small class=\"form-text text-muted\">We will share your personal information ONLY with the athletes you intend to contact.</small></div>\r\n    </div>\r\n</div>\r\n\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/comments/437522052","html_url":"https://github.com/xpertbot/craft-wheelform/issues/61#issuecomment-437522052","issue_url":"https://api.github.com/repos/xpertbot/craft-wheelform/issues/61","id":437522052,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzUyMjA1Mg==","user":{"login":"xpertbot","id":4000383,"node_id":"MDQ6VXNlcjQwMDAzODM=","avatar_url":"https://avatars1.githubusercontent.com/u/4000383?v=4","gravatar_id":"","url":"https://api.github.com/users/xpertbot","html_url":"https://github.com/xpertbot","followers_url":"https://api.github.com/users/xpertbot/followers","following_url":"https://api.github.com/users/xpertbot/following{/other_user}","gists_url":"https://api.github.com/users/xpertbot/gists{/gist_id}","starred_url":"https://api.github.com/users/xpertbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xpertbot/subscriptions","organizations_url":"https://api.github.com/users/xpertbot/orgs","repos_url":"https://api.github.com/users/xpertbot/repos","events_url":"https://api.github.com/users/xpertbot/events{/privacy}","received_events_url":"https://api.github.com/users/xpertbot/received_events","type":"User","site_admin":false},"created_at":"2018-11-09T22:59:52Z","updated_at":"2018-11-09T22:59:52Z","author_association":"OWNER","body":"Can you let me know your environment, OS, and database? I'm going to try to replicate your errors."}}
{"actor":{"display_login":"xpertbot"}}