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.
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.