# Function updateMilitaryViewModel

- updateMilitaryViewModel(key, value, verificationService, availableStatuses): ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel

- #### Parameters

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

  #### Returns ActiveMilitaryPersonalInfoViewModel | InactiveMilitaryPersonalInfoViewModel

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