userFieldSchema

Description

User fields allow you to select a specific user from a list. It is a field useful for the Case Management Database template with which you can assign Cases to specific users. User fields and inactive users: If you are using the User field in your Form and a user who has added Records to the Form, is no longer active, instead of deleting that user, create a new Role empty of permissions and assign it to that user.

Usage

userFieldSchema(
  label,
  description = NULL,
  databaseId,
  code = NULL,
  id = cuid(),
  key = FALSE,
  required = key,
  hideFromEntry = FALSE,
  hideInTable = FALSE,
  relevanceRule = "",
  validationRule = "",
  reviewerOnly = FALSE
)

Arguments

Argument Description
label The label of the form field
description The description of the form field
databaseId The database id of the form and users
code The code name of the form field
id The id of the form Field; default is to generate a new cuid
key Whether the form field is a key field; default is FALSE
required Whether the form field is required; default is FALSE
hideFromEntry Whether the form field is hidden during data entry; default is FALSE
hideInTable Whether the form field is hidden during data display; default is FALSE
relevanceRule Relevance rules for the form field given as a single character string; default is ""
validationRule Validation rules for the form field given as a single character string; default is ""
reviewerOnly Whether the form field is for reviewers only; default is FALSE

See also

Other field schemas: attachmentFieldSchema , barcodeFieldSchema , calculatedFieldSchema , dateFieldSchema , formFieldSchema , geopointFieldSchema , monthFieldSchema , multilineFieldSchema , multipleSelectFieldSchema , quantityFieldSchema , referenceFieldSchema , sectionFieldSchema , serialNumberFieldSchema , singleSelectFieldSchema , subformFieldSchema , weekFieldSchema

Next item
varNames