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.

Bugs in SurveyJS 1.1.16 layout/workings

See original GitHub issue

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

Reporting bugs

What is the current behavior?

  1. Description underInput does not get the class=‘small’ making it the same size as the titles. Description underTitle does get the class and looks like it should.

  2. The layout in version 1.1.15 and 1.1.14 is bodged, there is no spacing between the questions, in version 1.1.14 the layout looks fine.

  3. Adding a function to onComplete does not work properly. When adding a function with a window.location.href redirect there, it shortly shows the standard “Thank you for completing the survey” text before actually redirecting. I now redirect on successful onServerValidateQuestions and refrain from using onComplete.

What is the expected behavior?

  1. Add the class=‘small’ to the div around the description span for underInput like you do for underTitle descriptions:
<div data-bind="visible: question.hasDescriptionUnderTitle, css: koCss().description" class="small">
  1. I don’t know if this is only a problem on my way of using SurveyJS, but I expect the same layout spacing in subsequent versions.

  2. onComplete should completely override the standard onComplete showing the text “Thank you for completing the survey”

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

  1. Create a question with an underTitle description and one with an UnderInput description and see the difference. On the survey creator it looks fine, but on an implemented survey it does not (for me).

  2. Look at an implemented survey on version 1.1.14 vs version 1.1.15 and 1.1.16.

  3. Add a redirect to onComplete and see that it doesn’t redirect without showing the standard text onder or in place of the survey.

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

  1. function onComplete(result) { window.onbeforeunload = null; window.location.href = "{{ url }}"; }

I will try to make some screenshots of the layout problem if needed, please let me know (it will take me some effort to switch versions and show the problem).

Specify your

  • browser: Chrome
  • browser version: Version 77.0.3865.120
  • surveyjs platform (angular or react or jquery or knockout or vue): jquery
  • surveyjs version: 1.1.14

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
dk981234commented, Oct 22, 2019

Hello, According to the documentation you can use showCompletedPage: false to hide the “Thank you” page. Fix for description under input will be available in the next minor update. Thanks Dmitry SurveyJS Team

0reactions
nikhilwegilecommented, Apr 16, 2020

@dk981234 Yes!!! It is working now. Thanks Nikhil Singh

Read more comments on GitHub >

github_iconTop Results From Across the Web

Whats New - SurveyJS
survey-library, Bug, Dropdown automatically selects the focused item. When I open the dropdown and immediately close it, it selects the first item in...
Read more >
Introduction to the Form Library - SurveyJS
SurveyJS Form Library is a free and open-source JS component that allows you to configure and run on-page forms and pop-up surveys in...
Read more >
SurveyJS - JavaScript Libraries for Surveys and Forms
Open-source JavaScript form builder libraries that allows you to create unlimited survey forms in a self-hosted form management system with a no-code ...
Read more >
JavaScript Libraries for Surveys and Forms - SurveyJS
We understand the importance of having bug-free libraries. Being big fans of test-driven development (TDD), we write hundreds of unit tests to detect...
Read more >
Introduction to the Survey Creator Docs | Javascript Library
This configuration can be later used by the SurveyJS Library to display a survey ... Visit our What's New page for information on...
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