# Survey engine storing a variable using custom code and then later recalling it in another question

**URL:** <https://forum.surveyengine.com/t/survey-engine-storing-a-variable-using-custom-code-and-then-later-recalling-it-in-another-question/222>\
**Category:** Survey Building\
**Tags:** formatting\
**Created:** [27 January 2025 04:37 UTC](https://forum.surveyengine.com/t/survey-engine-storing-a-variable-using-custom-code-and-then-later-recalling-it-in-another-question/222 "2025-01-27T04:37:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![HamzaMustafa](https://avatars.discourse-cdn.com/v4/letter/h/779978/32.png) [@HamzaMustafa](https://forum.surveyengine.com/u/HamzaMustafa)\
**Post date:** [27 January 2025 04:37 UTC](https://forum.surveyengine.com/t/survey-engine-storing-a-variable-using-custom-code-and-then-later-recalling-it-in-another-question/222/1 "2025-01-27T04:37:03Z")

</div>

Hello All,

I wanted to know how i can store a value in a variable using custom code (value i received from a google maps api). I am familiar with qualtrics where there is a builtin method of declaring embedded variables/data using survey flow and then using those variables in a particular syntax like qualtrics.getembeddeddata(“”) etc. I am not sure how i can do similar stuff in survey engine? where i first store a value in a variable in a custom code and then later on retrieve or reuse that value in another question using custom code. Any help will be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![benno](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.surveyengine.com/benno/32/3_2.png) [@benno](https://forum.surveyengine.com/u/benno)\
**Post date:** [12 August 2025 10:17 UTC](https://forum.surveyengine.com/t/survey-engine-storing-a-variable-using-custom-code-and-then-later-recalling-it-in-another-question/222/2 "2025-08-12T10:17:18Z")

</div>

Hamza,  
The way to do this - is like in qualitrics - you need to transfer some data from an outside the software from a third party to inside the software.  
You need to set up a survey item to receive the data - then transfer the data, using javascript from the source into the data item.

There is a good mapping tutorial within the software you can run - just choose templates, then the mapping template and it guides you on saving lattitude and longitute from a user selected point on the map into a 2 d matrix element.

There’s also some tutorials here

> **[Software Tutorials – SurveyEngine GmbH](https://surveyengine.com/software-tutorials/)**
