addRequiredUI_internal: Check if a question is required

View source: R/utils_render-survey.R

addRequiredUI_internalR Documentation

Check if a question is required

Description

This function is for internal use. It will check if a question in the user-supplied questions dataframe is required. If so, it will add the label with an asterisk. If not, it will just return the label.

Usage

addRequiredUI_internal(df)

Arguments

df

One element (a dataframe) in the list of unique questions.

Value

A label with or without an asterisk to signify it is required.


jdtrat/shinysurveys documentation built on April 22, 2022, 8:14 a.m.