Form Field Object Structure for JavaScript Integration

I’m attempting to manipulate some Bit Form data in Pabbly Connect using JavaScript. But I’m having a devil of a time discerning what the form fields’ structure is. And the Bit App’s developer documentation regarding JavaScript returns a 404. In the attached image, notice that the mapped field returns an object, but without details on the structure, I can’t seem to get to the raw email.

Any help would be GREATLY appreciated! Thanks in advance.

1 Like

I figured it out, and it was user error, and super embarrassing. The whole exercise was to generate a unique affiliate ID code, partly derived from the users last name and email domains. I was using a .split('@') method on the email field and trying to assure the domain was set to lower case using .toLowerCase(), but it kept throwing an undefined function error. Finally I realized, I was forgetting that split() returns an array, and I wasn’t indexing the second element before calling .toLowerCase(). Once I properly indexed the element, it worked perfectly.

I’m a knucklehead, basically, but I figured I’d leave it here in case it’s useful to anybody else.

I’d still like complete documentation about Bit Forms own JavaScript functionality, btw. The link to the developer docs article delivers a 404 error…

2 Likes

Hi @conleec

Glad to hear you figured it out! And thanks for sharing your solution—it could definitely help others facing a similar issue.

Regarding the missing documentation of Form Field structure, I truly appreciate you bringing this to our attention. If you need this structure immediatly, we can certainly provide you with the structure of the Bit Form submission object.

{
   "form_id": "14"
   "entry_id": 53,
   "form_data":{
       "b14-2": "Yuli Sharp",
       "b14-3": "Nisi lorem illum re",
       "b14-5": "weketububy@mailinator.com",
   }
}

we will try to provide an updated documentation/resource as soon as possible.

If you need further clarification or have any specific questions, feel free to ask—we’re happy to assist!

Regards
Md RH Maruf
Bit Form Team

1 Like

This is great, thank you for sharing @conleec , I’m really impressed with what Bit Form can do, hoping to implement something similar in the future.

1 Like