Is it possible to add a "Previous" button? #231
Replies: 2 comments 2 replies
-
|
Hi, Thanks for trying out surveydown. Since you asked three unrelated questions, I'm going to answer the first one about having a previous button here, and for the other two please make separate posts on those issues so we can keep track of them. They're also important points, but worthy of their own separate discussion thread. We have discussed whether or not to allow a "previous" button before, e.g., here. One of the challenges is that when you allow a previous button, any page navigation logic that was previously executed needs to be undone. For a simple survey where users are only allowed to go forward or backward by a single page at a time and there is no conditional skipping logic, this is simple and easy to do. However, surveydown allows things like conditional page skipping, where users can be sent to different pages in the survey depending on some condition, such as a response to a question. This makes adding a previous button more complicated. For now, we've avoided it as most users haven't needed it, but it is something we can look into. At a minimum, we could perhaps allow it and restrict it to only "simple" surveys that don't have any conditional skipping logic. That is easy enough to check for, and we could throw an error if we detect both previous buttons and conditional skipping logic. The question I have is, how should we implement it? Right now users insert next buttons by adding Another idea is you could potentially override this behavior with This makes me also think, what if the function was just I'm just brainstorming here. If we do decide to implement a previous button functionality, I'd like to think about different approaches to the UI for how it'll work before we start working on it. What do you think @pingfan-hu and @Buneabt? |
Beta Was this translation helpful? Give feedback.
-
|
This is now handled in v1.0.0 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Thank you for creating {surveydown}. I was wondering if the following is possible:
sd_next(), what aboutsd_previous()?Beta Was this translation helpful? Give feedback.
All reactions