GDPR and website contact forms – basic steps you need to take

One of the key principles of GDPR is informed consent, and one of the main changes you'll probably need to make to your website ahead of the 25th May implementation date of GDPR is add storage and processing consent check-boxes to your website contact forms.
Source