editing signature box | XM Community
Skip to main content
Solved

editing signature box


Forum|alt.badge.img+4

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.

Best answer by vgayraud

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

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

});

 

View original

5 replies

vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+48
  • QPN Level 5 ●●●●●
  • 369 replies
  • Answer
  • December 1, 2023
Qualtrics.SurveyEngine.addOnReady(function()
{
	/*Place your JavaScript here to run when the page is fully displayed*/

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

});

 


Forum|alt.badge.img+4
  • Author
  • Level 1 ●
  • 11 replies
  • December 13, 2023

Thank you!!!


Forum|alt.badge.img+5
  • Level 2 ●●
  • 19 replies
  • January 26, 2024

@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


vgayraud
QPN Level 5 ●●●●●
Forum|alt.badge.img+48
  • QPN Level 5 ●●●●●
  • 369 replies
  • January 26, 2024

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.


Forum|alt.badge.img+5
  • Level 2 ●●
  • 19 replies
  • January 26, 2024

OMG!! Thank you!! @vgayraud 


Leave a Reply