Submit to Contact Form via API
-
Hi,
I’m trying to submit to a contact form i have on my website via the
/wp-json/contact-form-7/v1/contact-forms/<id> url, but i always get the result message saying the status is “validation_failed” and“invalidFields”:[{“into”:”span.wpcf7-form-control-wrap.email-20″,”message”:”the field is required”,”idref”:”field”}]
I only have one field: [email* email-20 id:field].
I suppose i am submitting a wrong JSON object, so I would like to know what is the correct JSON object i should submit. Now I am sending it like this:
{ "email-20":"[email protected]"}Gabriel
The topic ‘Submit to Contact Form via API’ is closed to new replies.