Codebook is by default turned off in Nettskjema, but best practices in handling data is to have it on. This function checks if the codebook of a form has been activated or not
has_codebook(form_id, token_name = "NETTSKJEMA_API_TOKEN")
form_id | integer. Number of the form to retrieve |
---|---|
token_name | character. Name to give the token, defaults to 'NETTSKJEMA_API_TOKEN' |
logical is codebook is turned on
if (FALSE) { has_codebook(110000) }