If judgment is rendered in favor of such claimant, he shall proceed to exercise the functions of the office, after he has qualified as required by law.