Cannot access custom form fields via API call

Hello all -

Newbie here, not experienced in front-end work, mostly a backend API developer, so I could use a jumpstart.

I have added custom code to my home page to create a form field called “obfus” which is uploaded along with user-selected files via uploadcare. That part of the effort is working fine: up go the files with the metadata “obfus” value along for the ride.

I then need to be able to link to the form data that the user submitted. “Obfus” is therefore defined in a custom code block as input type=“hidden” name=“obfus” id=“obfus” and its value is set successfully in a code block.

When the user submits the form, I get the expected email from Webflow. Here’s an example:

Submitted content
obfus: 7a94d9ff-9f71-4884-bbde-7e56813fbdfe
claim: I watched the Mets reestablish a lead
email: mike@whatever.com
couponcode:
SupportText: Go
Field 6:
Field 7:
Field 8:
Field 9:
Field 10:

However, my API endpoint does not receive “obfus” in the form content. What must I do to make that happen?

Bear in mind that I’m inexperienced; a code snippet will help me more than a documentation reference. Please just help me get there…thanks!

Mike

How is your API integrated?

If you have setup a Webflow API webhook to call your endpoint when it receives a [non-spam] submission, you should definitely be getting that data, because as you can see in the email notification, Webflow is receiving that data. you should see it in your form data history as well.

However you mentioned Uploadcare, which means you’re doing at least part of your data-capture client-side. Most likely that’s where you’re problem lies. If you’re trying to have obfus sent with your files to UploadCare, you need to check UploadCare docs on how to send custom fields.

I believe it’s designed to work the opposite way, i.e.;

  1. User is filling in the form
  2. User uploads a file, that file goes to UC. UC returns a token or URL for that file
  3. Your client side JS receives that token and stores it in the form
  4. User finishes the form and submits
  5. Your form handler [Webflow] receives that, and stores it. It has the form data, and a link to the UC-stored file(s).