# Best method to capture form data

**URL:** <https://community.hubspot.com/t/best-method-to-capture-form-data/24545>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [August 24, 2020, 12:13pm UTC](https://community.hubspot.com/t/best-method-to-capture-form-data/24545 "2020-08-24T12:13:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amydobhal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/amydobhal/32/78108_2.png) [@amydobhal](https://community.hubspot.com/u/amydobhal)\
**Post date:** [August 24, 2020, 12:13pm UTC](https://community.hubspot.com/t/best-method-to-capture-form-data/24545/1 "2020-08-24T12:13:20Z")

</div>

Hello all, I’m trying to get form submissions with the hubspot script but it not working well. Now, I’m trying to use FORM API to capture form submissions. Please tell me which is better to use the Hubspot XHR request "[https://legacydocs.hubspot.com/docs/methods/forms/submit\_form"](https://legacydocs.hubspot.com/docs/methods/forms/submit_form%22) or react hubspot “[https://www.npmjs.com/package/react-hubspot-form](https://www.npmjs.com/package/react-hubspot-form)”. I’ve already putted too much time for capturing form data and not wanted to waste any more time.  
Thanks already !

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [August 25, 2020, 3:10am UTC](https://community.hubspot.com/t/best-method-to-capture-form-data/24545/2 "2020-08-25T03:10:58Z")

</div>

Hey @amydobhal,

Both method would work when looking to capture HubSpot form submission.

Whether to use the [Submit data for a form | Forms API](https://legacydocs.hubspot.com/docs/methods/forms/submit_form) or [react-hubspot-form - npm](https://www.npmjs.com/package/react-hubspot-form), it would largely depends on what’s the framework that your team is comfortable in developing on.

If your team is more comfortable in coding on NodeJS, I’d recommend using the [Submit data for a form | Forms API](https://legacydocs.hubspot.com/docs/methods/forms/submit_form). If your team is more comfortable in coding on react, this would be a better choice - [react-hubspot-form - npm](https://www.npmjs.com/package/react-hubspot-form).
