A person who believes her or his name may be used as a write-in candidate for President of the United States shall, no later than 21 days before the presidential preference primary election, file an endorsement of her or his write-in candidacy with the Secretary of State, or no votes shall be counted for that write-in candidate.
Ca. Elec. Code § 6862