SURVEY Request response: change translation for the current automated response | XM Community
Skip to main content

Hello Qualtrics Community

We would like to adjust one of the automated responses giving by the system when the survey requests to users give an answer (see images):


As far as I know, the automated message showed above appears when the survey requests to be answered but not forced (open question is not mandatory). Is there a way to change this wording?

I have info about useful links to be used for that purpose about > how to create and load a new message:

My question with regards to the 'Automated messages' are:

  • For the message I want to change, which is the 'automated response' I should select and change? How to find the correct one from the list to be translated. There is a long list and I don't know which is the correct one for the message I want to change.
  • Is there a chance to download all these 'automated messages' and translations to be reviews internally and make any adjustments (if needed)?

Thanks for your feedback.

I am not sure if the system message for Request Response can be selected from that list. The message wording can be adjusted by adding the below to the OnReady section of the question’s JavaScript that has Request Response enabled:

jQuery("#NextButton").click(function() { 
setTimeout(function() {
jQuery("#ErrorMessage > span").html("message");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);
})

 


Thanks @Tom_1842, I cannot find this system message in that list.

Also thanks for the Javascript code, in that sense, we have the survey in different languages and the ‘German’ one should be updated but not for the others. 

How should it be included if we want to change it just for one survey language?

 Thanks for your response!
 


I think the system messages are all for Validation messages, the message that would display next to an exclamation point above a given question if it failed to meet the validation criteria. For the Request Response Error Message that takes up the page, I believe that has to be changed with JS. Try using the below which will check for a language code of ‘DE’ before changing this message text.

jQuery("#NextButton").click(function() { 

if("${e://Field/Q_Language}" == "DE") {

setTimeout(function() {
jQuery("#ErrorMessage > span").html("GERMAN MESSAGE");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);

};

});

 


@Tom_1842 many thanks! It works!

I wonder  how it should work if I want to include adhoc messages for other languages, for instance by adding similar code also for ES (spanish). In this case, adhoc messages for DE and ES in the same question:

jQuery("#NextButton").click(function() { 

if("${e://Field/Q_Language}" == "DE") {

setTimeout(function() {
jQuery("#ErrorMessage > span").html("GERMAN MESSAGE");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);

};

{

if("${e://Field/Q_Language}" == "ES-ES") {

setTimeout(function() {
jQuery("#ErrorMessage > span").html("SPANISH MESSAGE");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);

};

});

Thanks!


More languages can be added, but I think yours has an extra bracket included before the 2nd if. Try the below:

jQuery("#NextButton").click(function() { 

if("${e://Field/Q_Language}" == "DE") {

setTimeout(function() {
jQuery("#ErrorMessage > span").html("GERMAN MESSAGE");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);

};

if("${e://Field/Q_Language}" == "ES-ES") {

setTimeout(function() {
jQuery("#ErrorMessage > span").html("SPANISH MESSAGE");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(1)").html("button1");
jQuery("#Page > div > div.PageErrorDialog > div.ErrorButtons > button:nth-child(2)").html("button2");
}, 5);

};

});

 


Thank you very much @Tom_1842

Have a nice day!


Dear @Tom_1842  your answers are always so helpful. If I take the script you suggested how do I add another layer that also apply it ONLY to the question I added the JS to? I tried it without pointing out a specific QID and it just goes across all questions in the page. is that possible to add something so for every question I want to apply this JS the wording would be different? So I need different text in different questions with translation. THANKS!


@deveer Request Response applies to the whole page if there are any unanswered questions on a page that have Request Response enabled. It would probably be simplest to ask the questions one page at a time if you want different Request Response messages for each question. I think it's possible to add conditions to the JS that checks the answer status of questions on the page and displays different Request Response messages depending on the answer status, but I think it would be pretty custom to your survey and question types. I'd suggest starting a new thread with some specifics about your setup and someone might be able to point you in the right direction with the code.


Hi this is really helpful! I just wanted to know whether it was possible to apply to all response required questions in a survey - or if there is a method to do this? 


Leave a Reply