For an alternate example, in Illinois you choose one at primary election time and only get that one. This year the options are Democrat, Republican, Libertarian, and Non-Partisan (which means only the referendums, not the elections).
How long before the election do you have to choose? In NY for instance it's months in advance that you have to register with the state party to vote in the primary.