Coder Social home page Coder Social logo

Comments (6)

KlausNie avatar KlausNie commented on July 18, 2024

If you are referring to the example app (or if you took the code of that one): the last step is not supposed to be doing anything. That would be something that is left to the one using the library

from surveykit.

abdlkdrisiktan avatar abdlkdrisiktan commented on July 18, 2024

@KlausNie I'm not referring to the example app. In my project I try to send answers to server. When I failed to send answers to server I want to click button again but I couldn't do that because button disable when I click last button for once.

from surveykit.

razr130 avatar razr130 commented on July 18, 2024

Is there any answer to this?

from surveykit.

KlausNie avatar KlausNie commented on July 18, 2024

I believe the first time I misunderstood your issue!

So the problem is: the way the library (and the last step) is built, it is not made for your scenario. The mentality of the last step was: here are the results, do whatever you want with it (and show a finish screen). Nothing more.

The user was supposed to route away from the page and then do whatever he wants with the data.

Now if you want to use it as a "Send data with click" page, it might still work, but sadly your specific case, where you want to retry the sending is not handled.

In my opinion, if you want to keep that last screen as part of the survey, but it should enable you to reclick the button, then you'll have to build your own custom step ( https://github.com/quickbirdstudios/SurveyKit#-custom-steps ).

Alternatively, you can also build an own view for yourself (outside of the survey) which receives the data from the survey and you handle that case then in there 👍

from surveykit.

razr130 avatar razr130 commented on July 18, 2024

So is it possible for the CustomStep to get all the results from all the previous steps without finishing the survey first?
Like TaskResult in on survey finish. Because I see CustomStep uses StepResult in its parameter which is returning the result from the step itself only

from surveykit.

KlausNie avatar KlausNie commented on July 18, 2024

Oh, you are right! You will not be able to get "all" the results in a step, that is simply not possible.

I'm afraid that is not in the scope of providing intermediate results within the survey to the steps

from surveykit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.