input_form: Form inputs

View source: R/input-form.R

input_formR Documentation

Form inputs

Description

Form inputs are a new reactive input. Form inputs are an alternative to shiny::submitButton. A form input is comprised of any number of inputs. The values of these inputs do not reactively update. The inputs will reactively update when a form submit button is clicked.

A form input's reactive value depends on the clicked form submit button. This allows server logic to distinguish between different form submission types, think "login" versus "register".

Usage

input_form(id, ..., label = NULL, layout = NULL)

form_submit_button(label, ..., value = label)

update_form(id, label = NULL, session = get_current_session())

submit_form(id, value, session = get_current_session())

Arguments

id

A character string. The id of the reactive input.

...

Reactive inputs.

label

A character string. The label of the input.

layout

<responsive> A character string.

value

A character string. The input's value when the submit button is clicked.

session

A shiny session object.

gap

A number. The space between inputs, 0 through 5.

See Also

Other inputs: fileInput(), input_button(), input_checkbox(), input_checkbox_group(), input_chip(), input_list_group(), input_menu(), input_radio_group(), radiobarInput(), rangeInput(), selectInput(), textInput()


nteetor/dull documentation built on July 4, 2025, 8:52 a.m.