# Function updateMilitaryViewModel

- updateMilitaryViewModel(
  key:
  | "organization"
  | "birthDate"
  | "postalCode"
  | "address1"
  | "city"
  | "state"
  | "dischargeDate"
  | "activeDutyStartDate"
  | "status"
  | "country"
  | (keyof WithCoreFields)
  | (keyof WithLocaleChoiceAndCountryChoice)
  | "fieldsToSkipValidation",
  value: any,
  verificationService: VerificationService,
  availableStatuses: FormSelectChoice[],
  ):
  | ActiveMilitaryPersonalInfoViewModel
  | InactiveMilitaryPersonalInfoViewModel

  #### Parameters

  - key:
    | "organization"
    | "birthDate"
    | "postalCode"
    | "address1"
    | "city"
    | "state"
    | "dischargeDate"
    | "activeDutyStartDate"
    | "status"
    | "country"
    | (keyof WithCoreFields)
    | (keyof WithLocaleChoiceAndCountryChoice)
    | "fieldsToSkipValidation"
  - value: any
  - verificationService: VerificationService
  - availableStatuses: FormSelectChoice[]

  #### Returns ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel

  - Defined in jslib/src/components/StepMilitaryPersonalInfo/militaryStepHelpers.ts:28