Have there ever been presidential candidates that were not on the ballots in every single state? What was the outcome?

by morecupcakethanhuman

Maryland recently passed a law requiring all presidential candidates to disclose their tax returns. This has sparked some debate on news and politics subreddits about future candidates choosing to not be on Maryland's ballot becayse they don't want to disclose their returns and how much it would harm them. I'm curious about any historical context or precedent there might be.

Edit: I would like to know about candidates from major parties, regardless of whether they won or lost.

sopadepanda321

Do you mean only successful candidates for president? There have been plenty of third party candidates that fail to get their name on the ballot in every state.