editing signature box | XM Community
Skip to main content

Hi everyone,


is there a way to edit the signature box to say “initial here” instead of “sign here”? I was hoping to use the signature box to get initials for opting in and opting out for a consent form.

Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/

jQuery("#"+this.questionId+"-SignHere").html("Initials");

});

 


Thank you!!!


@vgayraud  Thank you. Do you know if there’s a way to change the word “Clear” in translations? The auto translation to Thai is not correct and I’m trying to figure out a way to write in Java Script that if the language of display is X than clear=something… and apply this to all languages where the “Clear” is not translated correctly


Hi @deveer 

I don’t think you can access directly that translation either. I would report the incorrect translation to Qualtrics support so they can fix it on their end, but meanwhile here is how to fix it yourself :

Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/

let lang = jQuery('html').attr('lang');

if (lang=='TH') {
jQuery("#"+this.questionId+"-SignHere").html("InitialsInThai");
jQuery("#"+this.questionId+"-ClearSignature").html("ClearInThai");
} else {
jQuery("#"+this.questionId+"-SignHere").html("Initials");
jQuery("#"+this.questionId+"-ClearSignature").html("Clear");
}

});

Basically, you’re querying the selected language and replacing the content of the SignHere and ClearSignature elements depending on the result. Add other conditions for your other languages. The last else will contain the “default” language.


OMG!! Thank you!! @vgayraud 


Leave a Reply