Question T6176
Visible to All Users

Progress Bar type Button

created 4 years ago

Hello All,

why my progress bar does not work anymore when I click on the next and previous button.

I work with survey-react latest version

JavaScript
const json = { //clearInvisibleValues: "onHidden", //showProgressBar: "top", showProgressBar: "top", progressBarType: "buttons", pages: [] } render() { const model = new Survey.Model(json); return ( <Survey.Survey model={model} id="survey" onAfterRenderQuestion={this.onAfterRenderQuestion} onAfterRenderPanel={this.onAfterRenderPanel} //showNavigationButtons={this.showNavigationButtons} // onComplete={(result)=> console.log(result.data)} onComplete={this.onComplete} onTextMarkdown={this.onTextMarkdown} //onComplete={sendDataToServer} onCurrentPageChanged={this.doOnCurrentPageChanged} sendResultOnPageNext={true} showCompletedPage={this.showCompletedPage} onPartialSend={this.onSurveyPartialSend} /> )}

Capture.PNG

Answers approved by surveyjs Support

created 4 years ago

Hello,

Here is live sample of progress buttons with latest SurveyJS React version. It is working fine in our case. Could you, please, modify this example to reproduce the issue?

Thanks, Alex
SurveyJS Team

    Show previous comments (8)

      Hello,

      You can create example on CodeSandbox without private/sensitive data. Only with minimal-sized SurveyJSON which we will able to debug to find the issue. It is difficult to us investigate part of your custom code which you share above

      Thanks, Alex
      SurveyJS Team

        In Codesandbox work normal, but in my platform I don't know what the problem is !!
        capture 2.PNG

          Hello,

          I believe you understand that in order to find what's wrong we need to reproduce the issue on our side. Only after that we can investigate it and fix error on our side if any or tell you what's wrong with your code.
          Please provide us with a minimal reproducible sample of your issue. This document describes how to do it - https://stackoverflow.com/help/minimal-reproducible-example , This example can be a plunker or codesandbox sample as well as a github repo. As a starting point for this sample you can take any live example Alex provided you before. You should remove all your private data from this sample. After that we can investigate it.

          Thanks, Serge
          SurveyJS Team