sd_skip_if also for questions #124
Replies: 1 comment 2 replies
-
First, do you mean What I think you're asking about is the ability to check if a question is answered or not, which would make your logic a little easier. I just opened #122 to address this, so if we add that your example would look like this: sd_show_if(
input$interessted_buying_car == "yes" || !sd_is_answered(input$interessted_buying_car) ~ "car_preference"
) It's not necessarily shorter, but it would be more robust as the |
Beta Was this translation helpful? Give feedback.
-
Description
I want to hide a question if there are some previous specific answers, but show it if it has been answered with the other options or not answered at all. At the moment, I can solve it like this:
But this is very inconvenient and error-prone. Doesn't it make sense to put the equivalent into the
sd_skip_if()
function? I thought that might be the simplest solution in terms of logic.Beta Was this translation helpful? Give feedback.
All reactions