SurveyKit icon indicating copy to clipboard operation
SurveyKit copied to clipboard

"Submit Survey" button not clickable after click one time

Open abdlkdrisiktan opened this issue 2 years ago • 6 comments

I finish the survey and clicked the submit survey button after that I tried to click again but button is not clickable. All I want to do that I want to click last button many times. I couldn't find how to enable clickable last button.

abdlkdrisiktan avatar Aug 10 '21 06:08 abdlkdrisiktan

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

KlausNie avatar Aug 12 '21 06:08 KlausNie

@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.

abdlkdrisiktan avatar Aug 27 '21 13:08 abdlkdrisiktan

Is there any answer to this?

razr130 avatar Apr 12 '22 03:04 razr130

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 👍

KlausNie avatar Apr 12 '22 05:04 KlausNie

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

razr130 avatar Apr 13 '22 06:04 razr130

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

KlausNie avatar Apr 13 '22 07:04 KlausNie