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.

Clicking 'Next' button does not go to next page

See original GitHub issue

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

Reporting a bug

What is the current behavior?

After updating to package v1.0.54, clicking the “Next” button does not go to the next page (also happening in 1.0.55).

What is the expected behavior?

Clicking the “Next” button should bring the survey to the next page.

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

This one’s a doozy… I’m not sure how to repro this, and I don’t see the issue happening when I locally build the example react survey after replacing the sample JSON with my own (seen below)… so I am really hoping the little info I found from investigating will be enough to guess what the issue might be:

  1. When I git pulled the project, I built the package at various commits to use locally in my project, and found the commit that broke the Next button: https://github.com/surveyjs/surveyjs/commit/67fe99f151d2a2608e70b9101d10cbf401534afa (so in this commit and onwards, the “Next” button doesn’t work for me)

  2. When debugging inside handleNextClick (the click event handler for the “Next” button) in reactSurveyNavigation.tsx:

  • The first time I click the button, this.survey.nextPage() returns true
  • The 2nd time I click, this.survey.nextPage() returns false from this line: if (this.isEditMode && this.isCurrentPageHasErrors) return false because the survey thinks the question has a AnswerRequiredError (even though the input is valid)

I apologize for the lack of info, but thought I’d try to see if someone else can figure out what might be happening.

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

Test JSON

{
	"pages": [{
			"name": "page1",
			"elements": [{
				"type": "text",
				"name": "question1",
				"title": "How old are you?",
				"isRequired": true,
				"validators": [{
					"type": "numeric",
					"minValue": 18,
					"maxValue": 99
				}],
				"placeHolder": "(years)"
			}]
		},
		{
			"name": "page2",
			"elements": [{
				"type": "radiogroup",
				"name": "question2",
				"title": "What is your sex?",
				"isRequired": true,
				"choices": [{
						"value": "M",
						"text": "Male"
					},
					{
						"value": "F",
						"text": "Female"
					}
				]
			}]
		}
	]
}

Specify your

  • browser: Chrome
  • browser version: 70.0.3538.77
  • surveyjs platform (angular or react or jquery or knockout or vue): react
  • surveyjs version: 1.0.55

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
andrewtelnovcommented, Nov 20, 2018

@nwvaras @ekim-novus @lucasharada We have released new minor version. Please try it out.

Thank you, Andrew

1reaction
lucasharadacommented, Nov 15, 2018

Having the same problem with survey-react: 1.0.55. But works perfectly on version1.0.53.

Read more comments on GitHub >

github_iconTop Results From Across the Web

I can't move to next page even after clicking the next button
I can't move from first page after clicking the Next button & hence, can't see the remaining 2 fieldsets. Can anyone point where...
Read more >
Next button does not go to Next page when clicked on form
Hi,. The form I have created is refusing to go to the next page when I click on Next. Is there something I'm...
Read more >
Dealing with pagination (clicking on a "Next" button)
There are two ways to set up pagination with a "Next" button: ... Click Pagination and Click to paginate to see whether Octoparse...
Read more >
Clicking 'Next' button does not go to next page · Issue #1437
After updating to package v1.0.54, clicking the "Next" button does not go to the next page (also happening in 1.0.55).
Read more >
"Continue" or "Next" Button is Not Visible
You are instructed to click a "Next" or "Continue" or arrow button to proceed, but no such button is visible. Cause: The buttons...
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