Any nominating petition for a candidate for judge of the superior court, judge of the court of appeals or justice of the supreme court to be voted on at any election shall be prepared and filed in accordance with the provisions of this chapter. Any petition filed by a candidate for any such court which does not comply with the provisions of this chapter shall have no force or effect at any such election.