All town officers elected as provided in this chapter shall take an oath of office as provided in RSA 42 before qualifying for office.