No person elected on write-in vote shall be eligible to hold office unless notice of his intention of candidacy was given 20 or more days prior to the election by the person to be a write-in candidate, or by some other person or group of persons qualified to vote in the subject election, to the mayor or similar officer thereof, and by publication in the official organ of the municipality holding the election.