Hi thanks for helping me out.
I am trying to obtain the value from a single line text box using this.getTextValue().
What am I doing wrong?
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
this.questionclick = function(event,element){
//alert('ID: ' +element.id);
var answer = this.getTextValue()
alert(answer);
}
});
Page 1 / 1
I solved it this way:
this.questionclick = function(event,element){
alert('ID: ' +element.value);
this.questionclick = function(event,element){
alert('ID: ' +element.value);
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.