Hi Guys, is it possible to have some kind of validation that suppose:Question 1 asks: What is your total mark in the test?....and lets say the respondent says they have 80Question 2 asks: What are your marks in Section A.....Section B and Section C,?l have text entry fields for each of these 3 sections, now l want a validation such that if their 3 marks they enter for section A, B and C does not add up to the number they have entered on question 1 they are told they have made an errorl don't know if its possible, if possible how can l do it?
here is my javascript code:Qualtrics.SurveyEngine.addOnReady(function(){ /*Place your JavaScript here to run when the page is fully displayed*/ var display = $('wordCountDisplay'); var questionID = this.questionId; var textbox =$('QR~' + questionID); var that = this; function countWords(s){ s = s.replace(/\\n/g,' '); // newlines to space s = s.replace(/(^\\s*)|(\\s*$)/gi,''); // remove spaces from start + end s = s.replace(/[ ]{2,}/gi,' '); // 2 or more spaces to 1 if(s == ''){ return 0; }else{ return s.split(' ').length; } } textbox.onkeyup = function(e){ display.update(countWords(textbox.value)); console.log(textbox.value); }});custom validation is set to Matches Regex with ^(?:\\b\\w+\\b[\\s\\r\\n]*){0,200}$how can l fix it
l've validated some parts of my survey to numeric inputs only ....my problem is when a person enters a non-numeric input they are receiving an error message when they finally press the next button.....how can l edit this such that they receive the error message as soon as they leave the text entry area where they put their non-numeric response (is the solution on addOnUnload(function))
how can l make this....two text entry fields aligned next to each other each with some kind of a heading for each field??....the two response will get into their separate fie
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.