I don't see entrapment. The charge was "willfully and intentionally make a materially false statement on the consent form, required by subsection B or C of 18.2-308.2:2"

According to the charge the crime was falsely filling out the form to purchase the hand gun. The police did not entice him to fill out the form. According to the post he did not remember the involuntary hospital stay, he truly believed that does not qualify within the definitions of the form, and, depending upon the facts of the involuntary commitment, may be able to legally purchase the firearm.