Hello,
I am working on a survey where the outputs from math operations are rather large, and currently I have been using Qualtrics math operations to get an output. The output results are in the range of a few hundred thousand to a several million. I know through JavaScript it is possible to have survey output in a comma separated numeric form or currency form. The issue I am running into now is that my JavaScript does not show up when I am making the calculation, it just shows up as blank. my code currently looks like this:
var site_earthwork_small= parseInt("${q://QID43/ChoiceTextEntryValue/1}");
var site_utilities_small=parseInt("${q://QID58/ChoiceTextEntryValue/1}");
var site_paving_small=parseInt("${q://QID46/ChoiceTextEntryValue/1}");
var site_landscaping_small=parseInt(" ${q://QID47/ChoiceTextEntryValue/1}");
var small_building_1=parseInt(" ${e://Field/Small%20Building%20size}");
var site_small_cost1=parseInt((site_earthwork_small+site_utilities_small+site_paving_small+site_landscaping_small)*small_building_1);
Qualtrics.SurveyEngine.setEmbeddedData("site_small_cost1", site_small_cost1);
Math operations with Embedded Data and Survey Input Data to output in currency form
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
