API Form Post-Request
-
Hi,
I use a ContactForm json form call to fill out a form via the interface of webinar software and then send an email.
If I specify the domain for the call in the form code, everything works as desired. The code will execute correctly and the requested email will be sent.
The provider of the webinar software does not change anything in the code except for the value linking of the fields.However, if I use a sub-domain or have installed WordPress in a directory domain.com/webinar/, the form is no longer filled out or the desired email is sent.
It seems that Contact Form 7 doesn’t support subdomain or directory on invocation here. Can this be?
Here my code:`
This works: <form action="https://domain.de/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post"> <label for="your-name">Dein Name</label> <input id="your-name" type="text" name="your-name"> <label for="your-lastname">Dein Nachname</label> <input id="your-lastname" type="text" name="your-lastname"> <label for="your-email">Deine E-Mail-Adresse</label> <input id="your-email" type="text" name="your-email"> <!-- Other input elements --> <button type="submit">Submit</button> </form> This doens't Work: <form action="https://sub.domain.de/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post"> <label for="your-name">Dein Name</label> <input id="your-name" type="text" name="your-name"> <label for="your-lastname">Dein Nachname</label> <input id="your-lastname" type="text" name="your-lastname"> <label for="your-email">Deine E-Mail-Adresse</label> <input id="your-email" type="text" name="your-email"> <!-- Other input elements --> <button type="submit">Submit</button> </form> <form action="https://domain.de/foldername/wp-json/contact-form-7/v1/contact-forms/2/feedback" method="post"> <label for="your-name">Dein Name</label> <input id="your-name" type="text" name="your-name"> <label for="your-lastname">Dein Nachname</label> <input id="your-lastname" type="text" name="your-lastname"> <label for="your-email">Deine E-Mail-Adresse</label> <input id="your-email" type="text" name="your-email"> <!-- Other input elements --> <button type="submit">Submit</button> </form>Does anyone have an idea or a solution?
A separate WordPress installation runs in the directory (foldername)Best Regards
DirkBest Regards
The topic ‘API Form Post-Request’ is closed to new replies.