• Resolved slimjim414

    (@slimjim414)


    I’ve seen this somewhat answered in a few topics and Github issues already, however I’m still running in to this error no matter what I try.

    I currently am appending to the FormData a new property like this:

    const body = new FormData();
    const formId = 'xxx';
    ...other properties
    body.append('_wpcf7_recaptcha_response', recaptchaToken.value as string);
    body.append('_wpcf7_unit_tag: ', 'wpcf7-f${formId}-o1');

    The format of the value for this new property I got from this Github issue. When submitting, I still receive the 400 error “There is no valid unit tag”. I have also been unable to find any documentation regarding this, and only vague references to it in the release notes. I’m not sure if it makes a difference or not, but I am using WordPress as a headless CMS, and am submitting to the api via a Nuxt3 frontend.

    How do I resolve this issue?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    body.append('_wpcf7_unit_tag: ', 'wpcf7-f${formId}-o1');

    _wpcf7_unit_tag: isn’t a correct field name.

    Thread Starter slimjim414

    (@slimjim414)

    @takayukister Ok… can you tell me what is the correct field name? I found that from the Github issue I linked to in my original post.

    Thread Starter slimjim414

    (@slimjim414)

    Ah jeez, just noticed that it had the colon and space after the property name! Removing that and just using __wpcf7_unit_tag works. Thank you for your response!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.