There are set keys in the formState that can be accessed in expressions to help in forms.
You can access them using field?.formState?.{KEY} example field?.formState?.LOCALE
These are all available formstate keys.
- FETCHED_DATA - Data fetched from fetch fields (NID, TIN etc)
- FETCHED_OPTIONS_DATA - Data fetched from custom drop down data fetched. This is not submitted with the form.
- APPLICATION_STATE - application state e.g. New, PENDING_RESUBMISSION....
- RFA_FLAGGED_FIELDS - fields flagged in RFA. Used for RFA Disable in RFA mode
- APPLICANT_BUSINESS_NAME - Business name when applying as business
- APPLICANT_BUSINESS_ID - Business ID when applying as business
- APPLICANT_TYPE - Applicant type
- LOCALE - selected locale used in the application form.