Skip to content

Conditional show not showing #277

Description

@virginiascarlett

Bug description

Hi,

I'm unable to get "conditional show" questions to work properly. I tried it both on my Mac and a Linux VM and I get the same result, even when I'm just running the unaltered template. This is not urgent for my purposes, but I'm wondering if it's a simple fix (I'm new to Shiny) or something deeper.

Steps to reproduce

install.packages("surveydown")
dir.create("test")
setwd("test")
surveydown::sd_create_survey(
  template = "conditional_showing"
)
shiny::runApp('test')

Expected behavior

Clicking "other" button on survey should trigger appearance of a new question.

Actual behavior

Nothing happens in the app, except that the Radio button is filled in. In the console, I get this warning/error:

Warning in value[[3L]](cond) :
  Error in condition evaluation: could not find function "sd_value"

Your environment

> sessionInfo()
R version 4.4.2 (2024-10-31)
Platform: aarch64-apple-darwin20
Running under: macOS 26.5.1

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 
LAPACK: /Library/Frameworks/R.framework/Versions/4.4-arm64/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.0

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/Los_Angeles
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] surveydown_1.0.1 shiny_1.13.0    

loaded via a namespace (and not attached):
 [1] vctrs_0.7.3       cli_3.6.6         knitr_1.51        rlang_1.2.0       xfun_0.58         otel_0.2.0       
 [7] processx_3.9.0    renv_1.1.4        promises_1.5.0    jsonlite_2.0.0    xtable_1.8-8      glue_1.8.1       
[13] htmltools_0.5.9   quarto_1.5.1      httpuv_1.6.17     sass_0.4.10       rmarkdown_2.31    jquerylib_0.1.4  
[19] tibble_3.3.1      evaluate_1.0.5    shinyjs_2.1.1     fastmap_1.2.0     yaml_2.3.12       lifecycle_1.0.5  
[25] memoise_2.0.1     compiler_4.4.2    miniUI_0.1.2      fs_2.1.0          pkgconfig_2.0.3   Rcpp_1.1.1-1.1   
[31] rstudioapi_0.18.0 later_1.4.8       digest_0.6.39     R6_2.6.1          pillar_1.11.1     magrittr_2.0.5   
[37] bslib_0.11.0      tools_4.4.2       withr_3.0.2       mime_0.13         cachem_1.1.0     
>
> sessionInfo()
R version 4.6.0 (2026-04-24)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 24.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.12.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.12.0  LAPACK version 3.12.0

locale:
 [1] LC_CTYPE=C.UTF-8       LC_NUMERIC=C           LC_TIME=C.UTF-8       
 [4] LC_COLLATE=C.UTF-8     LC_MONETARY=C.UTF-8    LC_MESSAGES=C.UTF-8   
 [7] LC_PAPER=C.UTF-8       LC_NAME=C              LC_ADDRESS=C          
[10] LC_TELEPHONE=C         LC_MEASUREMENT=C.UTF-8 LC_IDENTIFICATION=C   

time zone: Etc/UTC
tzcode source: system (glibc)

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base     

other attached packages:
[1] surveydown_1.0.1 shiny_1.13.0    

loaded via a namespace (and not attached):
 [1] miniUI_0.1.2      jsonlite_2.0.0    compiler_4.6.0    selectr_0.5-1    
 [5] promises_1.5.0    Rcpp_1.1.1-1.1    bspm_0.5.7        xml2_1.5.2       
 [9] stringr_1.6.0     jquerylib_0.1.4   later_1.4.8       yaml_2.3.12      
[13] fastmap_1.2.0     mime_0.13         R6_2.6.1          shinyjs_2.1.1    
[17] knitr_1.51        tibble_3.3.1      bslib_0.11.0      pillar_1.11.1    
[21] rlang_1.2.0       cachem_1.1.0      stringi_1.8.7     httpuv_1.6.17    
[25] xfun_0.58         sass_0.4.10       fs_2.1.0          otel_0.2.0       
[29] memoise_2.0.1     cli_3.6.6         withr_3.0.2       magrittr_2.0.5   
[33] ps_1.9.3          digest_0.6.39     rvest_1.0.5       processx_3.9.0   
[37] rstudioapi_0.18.0 xtable_1.8-8      lifecycle_1.0.5   vctrs_0.7.3      
[41] evaluate_1.0.5    glue_1.8.1        rmarkdown_2.31    httr_1.4.8       
[45] tools_4.6.0       pkgconfig_2.0.3   quarto_1.5.1      htmltools_0.5.9  

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions