He wasn't elected to anything. He was appointed Chancellor (a post similar to the President's Chief-of-Staff) in 1933 as part of a coalition government.
The views of Hitler and the NSDAP were well-known and one reason why they couldn't win many seats in the Reichstag.