(1)    Definition. In this section, “action” means all proceedings before a court from the filing of a complaint to final disposition at the trial level.

   (2)   One substitution. In any criminal action, the defendant has a right to only one substitution of a judge, except under sub. (7). The right of substitution shall be exercised as provided in this section.

   (3)   Substitution of judge assigned to preliminary examination.

     (a)    In this subsection, “judge” includes a circuit court commissioner who is assigned to conduct the preliminary examination.

     (b)    A written request for the substitution of a different judge for the judge assigned to preside at the preliminary examination may be filed with the clerk, or with the court at the initial appearance. If filed with the clerk, the request must be filed at least 5 days before the preliminary examination unless the court otherwise permits. Substitution of a judge assigned to a preliminary examination under this subsection exhausts the right to substitution for the duration of the action, except under sub. (7).

   (4)   Substitution of trial judge originally assigned. A written request for the substitution of a different judge for the judge originally assigned to the trial of the action may be filed with the clerk before making any motions to the trial court and before arraignment.

   (5)   Substitution of trial judge subsequently assigned. If a new judge is assigned to the trial of an action and the defendant has not exercised the right to substitute an assigned judge, a written request for the substitution of the new judge may be filed with the clerk within 15 days of the clerk’s giving actual notice or sending notice of the assignment to the defendant or the defendant’s attorney. If the notification occurs within 20 days of the date set for trial, the request shall be filed within 48 hours of the clerk’s giving actual notice or sending notice of the assignment. If the notification occurs within 48 hours of the trial or if there has been no notification, the defendant may make an oral or written request for substitution prior to the commencement of the proceedings.

   (6)   Substitution of judge in multiple defendant actions. In actions involving more than one defendant, the request for substitution shall be made jointly by all defendants. If severance has been granted and the right to substitute has not been exercised prior to the granting of severance, the defendant or defendants in each action may request a substitution under this section.

   (7)   Substitution of judge following appeal. If an appellate court orders a new trial or sentencing proceeding, a request under this section may be filed within 20 days after the filing of the remittitur by the appellate court, whether or not a request for substitution was made prior to the time the appeal was taken.

   (8)   Procedures for clerk. Upon receiving a request for substitution, the clerk shall immediately contact the judge whose substitution has been requested for a determination of whether the request was made timely and in proper form. If no determination is made within 7 days, the clerk shall refer the matter to the chief judge for the determination and reassignment of the action as necessary. If the request is determined to be proper, the clerk shall request the assignment of another judge under s. 751.03.

   (9)   Judge’s authority to act. Upon the filing of a request for substitution in proper form and within the proper time, the judge whose substitution has been requested has no authority to act further in the action except to conduct the initial appearance, accept pleas and set bail.

   (10)   Form of request. A request for substitution of a judge may be made in the following form: