question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Electron Survey-Vue: Unable to click Next or Complete Button

See original GitHub issue

Are you requesting a feature, reporting a bug or asking a question?

Reporting a Bug

What is the current behavior?

I am testing SurveyJS-Vue with Electron framework. While the Survey is rendered correctly, I am not able to get any response from “Next” or “Complete” button. I am not getting any error message also.

What is the expected behavior?

On Clicking Next button, next page should be rendered and on Clicking ‘Complete’ button “Thank you for completing the survey!” message should be displayed.

How would you reproduce the current behavior (if this is a bug)?

npm install -g vue-cli vue init simulatedgreg/electron-vue test-project

In test-project : npm install survey-vue

Create Survey in the Project.

Provide the test code and the tested page URL (if applicable)

test.vue


<template> <b-container> <Survey :survey="survey"></Survey> </b-container> </template> <script> import * as SurveyVue from "survey-vue"; import "bootstrap/dist/css/bootstrap.css"; var Survey = SurveyVue.Survey; Survey.cssType = "bootstrap"; export default { components: { Survey }, data() { var surveyJSON = { title: "Tell us, what technologies do you use?", pages: [ { name: "page1", questions: [ { type: "radiogroup", choices: ["Yes", "No"], isRequired: true, name: "frameworkUsing", title: "Do you use any front-end framework like Bootstrap?" }, { type: "checkbox", choices: ["Bootstrap", "Foundation"], hasOther: true, isRequired: true, name: "framework", title: "What front-end framework do you use?", visibleIf: "{frameworkUsing} = 'Yes'" } ] }, { name: "page2", questions: [ { type: "radiogroup", choices: ["Yes", "No"], isRequired: true, name: "mvvmUsing", title: "Do you use any MVVM framework?" }, { type: "checkbox", choices: ["AngularJS", "KnockoutJS", "React"], hasOther: true, isRequired: true, name: "mvvm", title: "What MVVM framework do you use?", visibleIf: "{mvvmUsing} = 'Yes'" } ] }, { name: "page3", questions: [ { type: "comment", name: "about", title: "Please tell us about your main requirements for Survey library" } ] } ] }; var model = new SurveyVue.SurveyModel(surveyJSON); model.css = SurveyVue.surveyCss.getCss(); model.onComplete.add(function(result) {}.bind(this)); return { survey: model }; } }; </script> <style> </style>
your_code_here

Specify your

  • browser: Electron (Chrome browser)
  • browser version: “vue-electron”: “^1.0.6”,
  • surveyjs platform (angular or react or jquery or knockout or vue): Vue
  • surveyjs version: “survey-vue”: “^1.0.28”
  • Vue.js: 2.5.16
  • Electron: 1.8.7
  • Node: 8.2.1

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pixelated-aucommented, Jul 11, 2018

I’d like to mention, I had a similar problem; the effect was the same but I don’t think the cause was the same but my resolution may provide a clue?

I was declaring my SurveyModel in the computed: {} section of my Vue component. This caused all events to fail silently. The next button (on multi-page forms), ‘other’ checkbox, validataion, etc just were unresponsive (unless I manually used event handlers).

I moved the SurveyModel to the data: () => ({}) section and used a watch: {} to update the SurveyModel, the system became responsive.

1reaction
jonathanmarvenscommented, Jul 9, 2019

I’d like to mention, I had a similar problem; the effect was the same but I don’t think the cause was the same but my resolution may provide a clue?

I was declaring my SurveyModel in the computed: {} section of my Vue component. This caused all events to fail silently. The next button (on multi-page forms), ‘other’ checkbox, validataion, etc just were unresponsive (unless I manually used event handlers).

I moved the SurveyModel to the data: () => ({}) section and used a watch: {} to update the SurveyModel, the system became responsive.

This issue just wasted a couple hours of my time scratching my head and debugging. I’m glad that I ran into this reply here from @pixelated-au to make me realize that the computed property was the issue. No errors were thrown and debugging showed normal operation. I really hope this is fixed soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron.js I can't do the Button action - Stack Overflow
I'm starting to study now and I'm trying to create an App that will update some files through an FTP, my problem initially...
Read more >
typeerror: class extends value undefined is not a constructor or null ...
Solution 1. If anyone else sees this error, the first thing to look for is circular dependencies. Import file A into B, B...
Read more >
Electron Tutorial: Building Modern Desktop Apps with Vue.js
Learn how to leverage Vue.js and Electron to build and secure ... After that, you can click on the "Create" button to complete...
Read more >
survey-vue - npm
survey.js is a JavaScript Survey Library. It is a modern way to add a survey to your website. It uses JSON for survey...
Read more >
Create an Electron application with Vue and Vuetify - ITNEXT
Vue CLI will create a folder with the same name. In the first step you'll be asked for features needed for your project,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found