The primary ballots for the several parties taking part in a primary shall be composed, arranged, printed, delivered, and provided in the same manner as the general election ballots except that at the top of each official primary ballot shall be printed in plain black type the name of the political party and the words "Primary Election." The names of the candidates for various offices shall appear on the ballot in an order determined by the priority of the time of filing for the office. In the event two or more candidates file simultaneously, the order of filing shall then be determined by lot by the electoral board or the State Board as in the case of a tie vote for the office. No write-in shall be permitted on ballots in primary elections.
Va. Code § 24.2-529