Skip to content

Main content

Survey Name Field Display Choice Tool

Select a supplied preferred display name only when the explicit display-consent flag permits it; otherwise use the participant code.

Loading tool…

Description

Return the preferred name with consent or participant code otherwise.

Identity and survey records can preserve a person's stated wording, display preference, source, and missing-value convention. A formatter should not infer an identity or turn a recorded label into permission for publication.

Return the preferred name with consent or participant code otherwise.

When to use this tool

Use Survey Name Field Display Choice when you need to organize supplied identity-related record fields while preserving their stated scope.

How to use the tool and how it works

  1. Enter preferredDisplayName, participantCode, displayConsent. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read displayLabel. Use the output convention below.

Require nonempty participantCode and, when displayConsent, a preferredDisplayName containing nonwhitespace text. Return the preferred name with consent or participant code otherwise.1

Input fieldMeaning and unitsAccepted input
preferredDisplayNamePreferred Display NameRequired. Text; maximum UTF-16 length 8192.
participantCodeParticipant CodeRequired. Text; maximum UTF-16 length 8192.
displayConsentDisplay ConsentRequired. Boolean.
Output fieldInterpretationReturned shape
displayLabelDisplay LabelRequired. Text; maximum UTF-16 length 8192.
json
{
  "input": {
    "preferredDisplayName": "Alex",
    "participantCode": "P-17",
    "displayConsent": true
  },
  "output": {
    "displayLabel": "Alex"
  }
}

Limitations and assumptions

  • This uses supplied display consent without verifying identity, current authorization, privacy risk, or whether the preferred name is correct.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Confirm preferences, consent, source wording, and the purpose of collection before displaying or combining personal records.

References

  1. Calculation and input contract: gender-studies/survey-name-field-display-choice — tool.io

Similar or alternative tools