Skip to contents

Creates a Shiny UI wrapper for displaying a survey with an optional response table. The UI includes a loading spinner and conditional panels based on survey state.

Usage

survey_ui_wrapper(id, theme, theme_color, cookie_expiration_days, custom_css)

Arguments

id

String. ID for the survey div container.

theme

String. SurveyJS theme, either "defaultV2" or "modern". Default: "defaultV2".

theme_color

String. Hex color code for primary theme customization.

Numeric. Number of days to retain survey cookies. Default: 7.

custom_css

String. Custom CSS rules to append to the theme.

Value

A Shiny UI definition containing survey container, loading spinner, and optional response table.