editing signature box | Experience Community
Skip to main content
Solved

editing signature box

  • Dec 1, 2023 1:48 PM UTC
  • 5 replies
  • 189 views

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 8 ●●●●●●●●
Forum|alt.badge.img+67
  • QPN Level 8 ●●●●●●●●
  • Answer
  • Dec 1, 2023 2:26 PM UTC
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 ●
  • Dec 13, 2023 9:16 PM UTC

Thank you!!!


Forum|alt.badge.img+5
  • Level 2 ●●
  • Jan 26, 2024 8:48 AM UTC

@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 8 ●●●●●●●●
Forum|alt.badge.img+67
  • QPN Level 8 ●●●●●●●●
  • Jan 26, 2024 9:02 AM UTC

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 ●●
  • Jan 26, 2024 9:55 AM UTC

OMG!! Thank you!! @vgayraud