{"action":"created","issue":{"url":"https://api.github.com/repos/surveyjs/surveyjs/issues/497","repository_url":"https://api.github.com/repos/surveyjs/surveyjs","labels_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/497/comments","events_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/497/events","html_url":"https://github.com/surveyjs/surveyjs/issues/497","id":242701968,"number":497,"title":"survey js submit survey with api call","user":{"login":"xiuzhen1103","id":6764095,"avatar_url":"https://avatars5.githubusercontent.com/u/6764095?v=4","gravatar_id":"","url":"https://api.github.com/users/xiuzhen1103","html_url":"https://github.com/xiuzhen1103","followers_url":"https://api.github.com/users/xiuzhen1103/followers","following_url":"https://api.github.com/users/xiuzhen1103/following{/other_user}","gists_url":"https://api.github.com/users/xiuzhen1103/gists{/gist_id}","starred_url":"https://api.github.com/users/xiuzhen1103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiuzhen1103/subscriptions","organizations_url":"https://api.github.com/users/xiuzhen1103/orgs","repos_url":"https://api.github.com/users/xiuzhen1103/repos","events_url":"https://api.github.com/users/xiuzhen1103/events{/privacy}","received_events_url":"https://api.github.com/users/xiuzhen1103/received_events","type":"User","site_admin":false},"labels":[{"id":247746345,"url":"https://api.github.com/repos/surveyjs/surveyjs/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":247746348,"url":"https://api.github.com/repos/surveyjs/surveyjs/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2017-07-13T13:31:12Z","updated_at":"2017-07-14T10:49:12Z","closed_at":null,"body":"### Are you requesting a feature, reporting a bug or ask a question?\r\n\r\nrequesting a feature\r\n\r\n### What is the current behavior?\r\nWhen survey is completed shows the html text indicating survey is completed\r\n\r\n\r\n### What is the expected behavior?\r\nwhen submit a survey, may I have a customized post api call inside it, please?\r\nIs there any chance that I could add a cancel button beside it, or do you have this function provided?\r\n\r\n\r\n\r\n#### Provide the test code and the tested page URL (if applicable)\r\n\r\nTested page URL:\r\n\r\nTest code\r\n```\r\n model.onComplete.add(function(result) {\r\n  document.querySelector('#container').innerHTML = \"<div class='panel'><h2>Survey has been submitted</h2>\" ;\r\n}\r\n```\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/surveyjs/surveyjs/issues/comments/315331037","html_url":"https://github.com/surveyjs/surveyjs/issues/497#issuecomment-315331037","issue_url":"https://api.github.com/repos/surveyjs/surveyjs/issues/497","id":315331037,"user":{"login":"xiuzhen1103","id":6764095,"avatar_url":"https://avatars5.githubusercontent.com/u/6764095?v=4","gravatar_id":"","url":"https://api.github.com/users/xiuzhen1103","html_url":"https://github.com/xiuzhen1103","followers_url":"https://api.github.com/users/xiuzhen1103/followers","following_url":"https://api.github.com/users/xiuzhen1103/following{/other_user}","gists_url":"https://api.github.com/users/xiuzhen1103/gists{/gist_id}","starred_url":"https://api.github.com/users/xiuzhen1103/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiuzhen1103/subscriptions","organizations_url":"https://api.github.com/users/xiuzhen1103/orgs","repos_url":"https://api.github.com/users/xiuzhen1103/repos","events_url":"https://api.github.com/users/xiuzhen1103/events{/privacy}","received_events_url":"https://api.github.com/users/xiuzhen1103/received_events","type":"User","site_admin":false},"created_at":"2017-07-14T10:49:12Z","updated_at":"2017-07-14T10:49:12Z","body":"Is there any chance that I could rename button \"complete\" to \"submit\""}}
{"actor":{"display_login":"xiuzhen1103"}}