Candidates who do not successfully file nominating petitions can still launch a “write-in” campaign to win the Democratic primary and, thus, get onto the ballot for the general election. To win a write in campaign, you will need to campaign prior to the primary and you will need poll greeters to cover all of the relevant polls to hand out literature for you. (For votes to count, your name must be spelled correctly!)
Depending on the office, and the competition for it, it may be possible to launch a write-in campaign in the general election.