Montana Constitution, Article VII
Section 9. Qualifications. (1) A citizen of the United States who has resided in the state two years immediately before taking office is eligible to the office of supreme court justice or district court judge if admitted to the practice of law in Montana for at least five years prior to the date of appointment or election. Qualifications and methods of selection of judges of other courts shall be provided by law.
(2) No supreme court justice or district court judge shall solicit or receive compensation in any form whatever on account of his office, except salary and actual necessary travel expense.
(3) Except as otherwise provided in this constitution, no supreme court justice or district court judge shall practice law during his term of office, engage in any other employment for which salary or fee is paid, or hold office in a political party.
(4) Supreme court justices shall reside within the state. During his term of office, a district court judge shall reside in the district and a justice of the peace shall reside in the county in which he is elected or appointed. The residency requirement for every other judge must be provided by law.