Upvote:3
TIMATIC states:
Visa required, except for Passengers transiting through Bangkok (DMK) arriving on Thai AirAsia (FD) or Thai AirAsia X (XJ) with a confirmed onward ticket for a flight on Thai AirAsia (FD) or Thai AirAsia X (XJ) to a third country within 12 hours. The connecting flight must be booked on the same ticket. They must stay in the international transit area of the airport and have documents required for the next destination.
As you leave the transit area to switch airport you will need a visa.