reset_input_fields | R Documentation |
Set the specified input fields to their default empty values.
reset_input_fields(session, fields_to_clear, exceptions = c(""))
session |
The current Shiny session |
fields_to_clear |
The names of the variables whose corresponding fields should be cleared |
exceptions |
Optional vector of variable names which should not be cleared. This is useful if fields_to_clear is supplied with all variable names but there are a few that should not be cleared. |
None, used for side effects.
This doesn't reset the tables (e.g. harvest_crop_table) – they reset themselves every time they become hidden. Also doesn't reset fileInputs, they have their own way of clearing their value.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.