Specification for Contact_Candidate
FIELD DESCRIPTION TYPE REQUIRED SAMPLE DATA VALUE REFERENCE RULE REFERENCE FIELD FORM ASSOCIATION VALIDATION RULES
TYPE Dropdown X (error) Individual Committee Organization Candidate
  • REQUIRED
  • must equal: CAN
CANDIDATE ID A/N-9 X (error) H01234567
  • REQUIRED
  • type: string
  • min length: 1
  • max length: 9
  • regex: ^P[0-9]{8}$|^[H|S][0-9]{1}[A-Z]{2}[0-9]{5}$
LAST NAME A/N-30 X (error) Smith
  • REQUIRED
  • type: string
  • min length: 1
  • max length: 30
  • regex: ^[ -~]{0,30}$
FIRST NAME A/N-20 X (error) John
  • REQUIRED
  • type: string
  • min length: 1
  • max length: 20
  • regex: ^[ -~]{0,20}$
MIDDLE NAME A/N-20 W
  • type: ['string', 'null']
  • min length: 0
  • max length: 20
  • regex: ^[ -~]{0,20}$
PREFIX A/N-10 Dr
  • type: ['string', 'null']
  • min length: 0
  • max length: 10
  • regex: ^[ -~]{0,10}$
SUFFIX A/N-10 Jr
  • type: ['string', 'null']
  • min length: 0
  • max length: 10
  • regex: ^[ -~]{0,10}$
STREET 1 A/N-34 X (error) 123 Main Street
  • REQUIRED
  • type: string
  • min length: 1
  • max length: 34
  • regex: ^[ -~]{0,34}$
STREET 2 A/N-34
  • type: ['string', 'null']
  • min length: 0
  • max length: 34
  • regex: ^[ -~]{0,34}$
CITY A/N-30 X (error) Anytown
  • REQUIRED
  • type: string
  • min length: 1
  • max length: 30
  • regex: ^[ -~]{0,30}$
STATE A/N-2 X (error) WA Edit: ST. Default to ZZ if Country DNE US
  • REQUIRED
  • type: string
  • min length: 2
  • max length: 2
  • regex: ^[A-Z]{2}$
ZIP A/N-9 X (error) 981110123
  • REQUIRED if COUNTRY equals USA
  • type: ['string', 'null']
  • min length: 0
  • max length: 9
  • regex: ^[ -~]{0,9}$
EMPLOYER A/N-38 XYZ Company Req if Donor aggregate >$200
  • type: ['string', 'null']
  • min length: 0
  • max length: 38
  • regex: ^[ -~]{0,38}$
OCCUPATION A/N-38 QC Inspector Req if Donor aggregate >$200
  • type: ['string', 'null']
  • min length: 0
  • max length: 38
  • regex: ^[ -~]{0,38}$
CANDIDATE OFFICE Dropdown X (error) House Senate Presidential
  • REQUIRED
  • type: string
  • must be one of: ['H', 'S', 'P']
CANDIDATE STATE A/N-2 X (error) WA Required if Office = H or S
  • REQUIRED if CANDIDATE_OFFICE equals S
  • REQUIRED if CANDIDATE_OFFICE equals H
  • type: ['string', 'null']
  • min length: 2
  • max length: 2
  • regex: ^[A-Z]{2}$
CANDIDATE DISTRICT A/N-2 X (error) Required if Office = H
  • REQUIRED if CANDIDATE_OFFICE equals H
  • type: ['string', 'null']
  • min length: 2
  • max length: 2
  • regex: ^[0-9]{2}$
TELEPHONE N-10
  • type: ['string', 'null']
  • min length: 0
  • max length: 15
  • regex: ^\+\d{1,3} \d{10}$
COUNTRY Dropdown X (error) Should default to United States
  • REQUIRED
  • type: string