onInputEnable: Enable a Continue Button if a Specified Criterium is Reached

Description Usage Arguments Value

View source: R/on_input_enable.R

Description

Check if a criterium, specified in the page list file given or if default loaded by createPageList, is met and if so enable the continue button. If several criteria are given they must ALL be met to enable the button.

Usage

1
onInputEnable(pageId, ctrlVals, pageList, globId, inputList, charNum = NULL)

Arguments

pageId

string. The current page id.

ctrlVals

list of reactive values. Controls the flow through the Experiment. Can be created with createCtrlList.

pageList

list. The one returned by createPageList or one of the same structure.

globId

string. The global id of the set of pages or questionnaire as specified in createCtrlList.

inputList

The input object of the shiny app.

charNum

integer. The minimum number of characters that must be given to textInput to enable the button. Only needed if the page contains a text input.

Value

Updated state of the specified button.


ndphillips/ShinyPsych documentation built on Feb. 14, 2022, 5:53 p.m.