input_form | R Documentation |
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".
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())
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, |
Other inputs:
fileInput()
,
input_button()
,
input_checkbox()
,
input_checkbox_group()
,
input_chip()
,
input_list_group()
,
input_menu()
,
input_radio_group()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.