The short answer
It can be, but using a third-party form does not make you compliant on its own. Under the GDPR you are still the one deciding why you collect the data, and the provider is processing it for you. So the form is compliant when you have an agreement with the provider that covers this, you know where the data is stored, and your page tells visitors what you do with it. This is a readiness guide, not legal advice.
Where this question comes from
It is asked in the open: one Webmasters Stack Exchange question from 2018 is titled "GDPR - 3rd party compliant contact form" (https://webmasters.stackexchange.com/questions/115440/). It was asked right around the time the regulation started applying, so the answers are old; read the regulation text and your provider's current terms before relying on any forum answer.
A three-check list
- An agreement with the provider. Look in the provider's account settings or legal pages for a data processing agreement. Many providers publish one you can accept online. Keep a copy with the date.
- Where the data goes. Find out in which country the provider stores form submissions and whether it passes them to other companies. If the answer is not on the provider's site, ask them and keep the reply.
- What your page says. Next to the form, say in plain words what you collect, why, how long you keep it and who to write to about it. A link to a privacy page is the usual way. Collect only what you need to answer: a name, a way to reach the person and the message.
What a small business can skip
You do not need a long legal text to start. You need the three checks above, written down in a few lines, and the habit of deleting old enquiries you no longer need.
FAQ
Does it matter that the provider is outside the EU? It can. Transfers outside the EU have their own rules, so check where the provider stores the data and what its agreement says about transfers.
Do I need a checkbox on the form? It depends on why you collect the data and on the law that applies to you. Ask an adviser; do not copy another site's wording.
What if I keep my own form on my own site instead? You are then the only one handling the data, which removes the provider question but not the duty to tell visitors what you do with it, and not the need for the mail to reach you.
What to write next to the form
A few plain lines are enough to start, and you should write them in your own words and have an adviser read them once. They should cover four points: what you collect (name, contact detail, message), why (to answer the enquiry), how long you keep it (say a period you will really keep, and then keep it), and who to write to to see or delete it. Put a link to the full privacy page right under the button.
Three mistakes I see on small sites
- A form with fields nobody uses. Phone number, company size and budget on a first enquiry are data you now have to protect and explain. Remove the fields you do not use.
- A provider chosen in a hurry. The form plugin was free, so nobody read where it stores messages. Take ten minutes and read it now.
- Old enquiries kept forever. A mailbox with years of messages is a data store. Pick a time after which you delete them, and put it in your calendar.
If you want a second pair of eyes on the form and the page text around it, book a short call.