Full State Name for Gravity Forms fixes an annoying inconsistency in Gravity Forms: depending on the form, the add-on, and the code path, the Address field’s “State / Province” sub-input (input X.4) sometimes resolves to a 2-letter abbreviation (“NJ”) and sometimes to the full state name (“New Jersey”) when used in merge tags.
This causes real problems with:
{all_fields} output mixing full city names with state codes.This plugin hooks into gform_merge_tag_filter and, only when the merge tag targets an Address field’s State sub-input (X.4) and the value is exactly a 2-letter code, expands it back to the full state name that Gravity Forms uses in its Address field dropdown.
fsn_gf_state_map filter for non-US addresses or translated labelsfsn_gf_expanded_state_name to customize the replacement on a per-field basis{all_fields} merge tag{Address (State / Province):X.4} merge tagAll US states (50), DC, US territories (PR, GU, VI, AS, MP), and military mailing regions (AA, AE, AP) — a total of 59 entries that match the default Gravity Forms Address state options exactly.