reset_input_fields: Reset the value of input fields

View source: R/fct_ui.R

reset_input_fieldsR Documentation

Reset the value of input fields

Description

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.


Ottis1/fieldactivity documentation built on Nov. 21, 2022, 2:23 p.m.