(65 ILCS 5/3.1-20-45)
    Sec. 3.1-20-45. Nonpartisan primary elections; uncontested office. A city incorporated under this Code that elects municipal officers at nonpartisan primary and general elections shall conduct the elections as provided in the Election Code, except that no office for which nomination is uncontested shall be included on the primary ballot and no primary shall be held for that office. For the purposes of this Section, an office is uncontested when not more than 4 persons to be nominated for each office have timely filed valid nominating papers seeking nomination for the election to that office.
    Notwithstanding the preceding paragraph, when a person (i) who has not timely filed valid nomination papers and (ii) who intends to become a write-in candidate for nomination for any office for which nomination is uncontested files a written statement or notice of that intent with the proper election official with whom the nomination papers for that office are filed, if the write-in candidate becomes the fifth candidate filed, a primary ballot must be prepared and a primary must be held for the office. The statement or notice must be filed on or before the 61st day before the consolidated primary election. The statement must contain (i) the name and address of the person intending to become a write-in candidate, (ii) a statement that the person intends to become a write-in candidate, and (iii) the office the person is seeking as a write-in candidate. An election authority has no duty to conduct a primary election or prepare a primary ballot unless a statement meeting the requirements of this paragraph is filed in a timely manner.
    If there is a primary election, then candidates shall be placed on the ballot for the next succeeding general municipal election in the following manner:
        (1) If one officer is to be elected, then the 2
    
candidates who receive the highest number of votes shall be placed on the ballot for the next succeeding general municipal election.
        (2) If 2 aldermen are to be elected at large, then
    
the 4 candidates who receive the highest number of votes shall be placed on the ballot for the next succeeding general municipal election.
        (3) If 3 aldermen are to be elected at large, then
    
the 6 candidates who receive the highest number of votes shall be placed on the ballot for the next succeeding general municipal election.
    The name of a write-in candidate may not be placed on the ballot for the next succeeding general municipal election unless he or she receives a number of votes in the primary election that equals or exceeds the number of signatures required on a petition for nomination for that office or that exceeds the number of votes received by at least one of the candidates whose names were printed on the primary ballot for nomination for or election to the same office.
(Source: P.A. 97-81, eff. 7-5-11.)