From cc958e09275240a409a877a446409a263b07bf10 Mon Sep 17 00:00:00 2001 From: Jacob Levine Date: Fri, 22 Mar 2019 00:24:23 -0500 Subject: [PATCH] bugfix 20 --- website/public/scout/scripts.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/public/scout/scripts.js b/website/public/scout/scripts.js index 9fe23e87..bc3a9786 100644 --- a/website/public/scout/scripts.js +++ b/website/public/scout/scripts.js @@ -218,6 +218,10 @@ function processAndAppendReturn(data) { if (index > -1) { labels.splice(index, 1); } + var index = labels.indexOf('order'); + if (index > -1) { + labels.splice(index, 1); + } var questions = []; for (var j = 0; j < labels.length; j++) { questions.push([labels[j], data[labels[j]]]); @@ -230,7 +234,7 @@ function processAndAppendReturn(data) { document.getElementById('FormData').innerHTML += questions[j][0]; if (questions[j][1]['type'] == 'shortText') { document.getElementById('FormData').innerHTML += ""; - } else if (questions[j][1]['type'] == 'longText') { + } else if (questions[j][1]['type'] == 'textField') { document.getElementById('FormData').innerHTML += ""; } else if (questions[j][1]['type'] == 'stepper') { document.getElementById('FormData').innerHTML += "" + (questions[j][1]['defaultValue']).toString() + "";