# How to reference an Id from a question on a form?

**URL:** <https://forum.wixstudio.com/t/how-to-reference-an-id-from-a-question-on-a-form/56757>\
**Category:** Ask the community\
**Tags:** question, wix-forms, code\
**Created:** [February 27, 2024, 10:29pm UTC](https://forum.wixstudio.com/t/how-to-reference-an-id-from-a-question-on-a-form/56757 "2024-02-27T22:29:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joao\_Vitor\_Oliveira](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/joao_vitor_oliveira/32/81021_2.png) [@Joao\_Vitor\_Oliveira](https://forum.wixstudio.com/u/Joao_Vitor_Oliveira)\
**Post date:** [February 27, 2024, 10:29pm UTC](https://forum.wixstudio.com/t/how-to-reference-an-id-from-a-question-on-a-form/56757/1 "2024-02-27T22:29:04Z")

</div>

I’m trying to manipulate data from a form to send to a Google Sheets spreadsheet. So far I have managed to integrate the API successfully, however, when I go to get the data from within the form in the Code, I cannot get the Id of the questions in the form to manipulate them.  
How can I reference the form in the code?

---

<div class="post-metadata">

**Author:** ![anthony](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/anthony/32/79536_2.png) [@anthony](https://forum.wixstudio.com/u/anthony)\
**Post date:** [February 29, 2024, 10:16pm UTC](https://forum.wixstudio.com/t/how-to-reference-an-id-from-a-question-on-a-form/56757/2 "2024-02-29T22:16:17Z")

</div>

You should be able to use this event on the backend which you’d want to do rather than the frontend so that you don’t send your Google Sheets API keys to the user’s web browser.

> **[onSubmissionCreated - Velo API Reference - Wix.com](https://www.wix.com/velo/reference/wix-forms-v2/events/onsubmissioncreated)**
>
> Triggered when a submission is created.
