Every person who offers for election as mayor or councilmember of the city shall designate with the proper authority in the general election the specific office of mayor or special council district for which he or she offers by naming the office of mayor or the specific council district by number, and, thereupon, he or she shall be qualified, if otherwise qualified, as a candidate for such office of mayor or designated council district.