Really? You mean, formally?
Hitler never got elected to dog catcher or Chancellor.
He was appointed to Chancellor by an aging Von Hindenberg under the advice of Minister Papen. The simple math was this. The Army was 100,000 men, 50% of which were Nazi’s. Hitler had 2 million armed goons in the street intimidating and killing to get his way. He had already attempted a coup once and to prevent bloodshed Hindenberg and Papen thought it wise to appease (doesn’t that always work?) the madman and give him a position of power. Then all he had to do was create a fictional terrorist attack (burned down the Reichstag) blame it on the communists, who were the secondlargest party in the Reichstag.