Skip to contents

Set the specified input fields to their default empty values.

Usage

reset_input_fields(session, fields_to_clear, exceptions = c(""))

Arguments

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.

Value

None, used for side effects.

Note

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.