Sometimes incoming airlines have customs forms but, as Smoke says, it is arbitrary. I guess it depends if the cabin crew remember to pick them up. Otherwise they are available after landing and on entry to the baggage hall.
I believe Japan Airlines have VOA forms on their aircraft and an RI Immigration Officer processes them in-flight to Bali. I've only read about it....no first-hand experience.