Skip to contents

Returns available form types from the package registry. Each type corresponds to a field data collection form (GPKG) that can be included in a project. The type value is the shared key used across all form lifecycle functions.

Usage

rfp_form_types(type = NULL)

Arguments

type

Character. Optional filter — return only this form type. If NULL (default), returns all available types.

Value

A tibble with columns: type, description, template_source, has_spatial.

See also

Other form: rfp_form_create()

Examples

# List all form types
rfp_form_types()
#> # A tibble: 6 × 4
#>   type        description                            template_source has_spatial
#>   <chr>       <chr>                                  <chr>           <chr>      
#> 1 pscis       Fish Passage Stream Crossing Assessme… pscis_assessme… true       
#> 2 fiss_site   Fish Habitat Site Assessment           FDS_Template20… true       
#> 3 fish_sample Fish Individual Sample Data            FDS_Template20… true       
#> 4 fhap        Fish Habitat Assessment Protocol       FHAP_template.… true       
#> 5 edna        Environmental DNA Sampling             template_edna.… true       
#> 6 monitoring  Restoration Monitoring                 pscis_assessme… true       

# Get info for a specific type
rfp_form_types("pscis")
#> # A tibble: 1 × 4
#>   type  description                             template_source      has_spatial
#>   <chr> <chr>                                   <chr>                <chr>      
#> 1 pscis Fish Passage Stream Crossing Assessment pscis_assessment_te… true       

# Available type values (for use in other form functions)
rfp_form_types()$type
#> [1] "pscis"       "fiss_site"   "fish_sample" "fhap"        "edna"       
#> [6] "monitoring"