Story highlights Bill requires presidential candidates to release their five most recent years of tax returns

Otherwise, they could be considered ineligible to appear on the ballot

(CNN) President Donald Trump may have to release his tax returns if he wants to compete in California in 2020.

A bill passed by the state legislature Friday requires presidential candidates to release their five most recent years of tax returns to get on the ballot.

If this holds, Trump would have to submit them to the state when he runs for re-election, or he could be considered ineligible to appear on the ballot in the primary and general election.

"Our top priority is making sure the voters of California have the information they need before they go into the voting booth," Democratic state Sen. Mike McGuire -- a lead sponsor of the bill -- told CNN. "If President Trump doesn't release his tax returns voluntarily, California will do it for him."

The bill, passed mostly on party lines in both chambers with only some Republicans supporting the effort, also requires the California secretary of state to publish the returns online with personal information redacted.

Read More