If any person who is a candidate for nomination by a political party at a primary election, and who, along with one or more other candidates, has qualified to have his name printed on the official ballot for the primary, dies 45 days or more before the day on which the primary is to be held, any person otherwise qualified who desires to be a candidate at that primary may file a declaration of and petition for his candidacy with the proper chairman of his party committee. The declaration and petition shall comply in every respect with the requirements established generally for such declarations and petitions by this article, except that the declaration and petition shall be filed at least 35 days before the day on which the primary is to be held.
The party chairman or chairmen shall promptly certify the names of every such person to the State Board and appropriate electoral boards as having qualified under the provisions of this section. Every electoral board having charge of the printing of official ballots for the primary election shall either:
Whenever any additional candidate shall qualify pursuant to this section, no ballots theretofore cast by absentee vote for a candidate for such office shall be counted, but any person who has so voted shall be entitled to receive a new ballot and to vote for his choice among all the candidates for such office.
Va. Code § 24.2-538