Survey-library: Automatic navigation to next page - other option in dropdown shows error

Created on 3 Mar 2020  路  6Comments  路  Source: surveyjs/survey-library

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

Bug

What is the current behavior?

ezgif-5-210d12c2c814

What is the expected behavior?

SurveyJS should know that selecting other means we're not done yet; now the user is greeted with a big error that is very unexpected.

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

Enable automatically go to next page behavior create a question that has an other option.

Specify your

  • surveyjs platform (angular or react or jquery or knockout or vue): knockout
  • surveyjs version: *.12
bug fixed

Most helpful comment

@SamMousa I decided to go to the next page on setting value to other comment. The issue is fixed. The fix will be available in the next minor update that we will relese on this week.

Thank you,
Andrew

All 6 comments

@SamMousa What do you think? Should we disable the ability to go to next page if an end-user select other?

Thank you,
Andrew

I think this should be done more abstract, this way we can support custom question types as well.

What about validating the question silently and only attempting navigation if it succeeds?

Silently meaning don't show markup for failed or successful validation

I guess the core library could offer this via events, so that a question can fire something when it is complete?

@SamMousa We have public supportGoNextPageAutomatic(); that some questions overrides, it returns false by default. We check for errors silently as well, probably there is a bug, I have to check.
Here is the link to the code.
Here is my question:
Should we disable this functionality for radio group/dropdown when the other is choosen or go to the next page, when the other/comment field is filled? What do you think?

Thank you,
Andrew

@SamMousa I decided to go to the next page on setting value to other comment. The issue is fixed. The fix will be available in the next minor update that we will relese on this week.

Thank you,
Andrew

Was this page helpful?
0 / 5 - 0 ratings

Related issues

misamura picture misamura  路  4Comments

wollerman picture wollerman  路  4Comments

AWIXOR picture AWIXOR  路  3Comments

spertusatti picture spertusatti  路  3Comments

enricribas picture enricribas  路  3Comments