At least fifty days before any statewide primary or general election, the Secretary of State shall transmit in ballot form to each election commissioner or county clerk a certification of the candidates, offices, and issues that appear on the state ballot. The certification prior to the primary election shall name the office to be filled, the length of the term, the number of candidates to be voted for, the name of each candidate for whom candidate filing forms or petitions have been filed in the office of the Secretary of State and who is entitled to be voted for at such primary election, and the party affiliation or nonpartisan status of each candidate. A separate statement of the city or village of residence of each candidate shall be included with the certification, but the city or village of residence shall not appear on the official ballot. The certification prior to the general election shall name the office to be filled, the length of the term, the number of candidates to be voted for, the name of each candidate who was nominated at the primary election or who filed by petition as shown by the records in the office of the Secretary of State and who is entitled to be voted for at the general election, and the party affiliation or nonpartisan status of each candidate for partisan offices.