Signature Question - Disable or Readonly? | XM Community
Solved

Signature Question - Disable or Readonly?

  • 16 February 2021
  • 2 replies
  • 44 views

Userlevel 3
Badge +6

Is there a way to disable the Signature question that has already been signed? Use case is a retake link scenario where the question will be visible again but we do not want it to be active. I tried changing the attribute to readonly or disabled, but perhaps I am not properly referring to the element ID. Or maybe there's another way? Thank you!

icon

Best answer by rondev 16 February 2021, 16:52

View original

2 replies

Userlevel 7
Badge +22

Use the below code, which will disable the signature question only if it is retake link:

var qid = this.questionId;

if( "${e://Field/Q_R}" != "" )

jQuery("#"+qid+" .QuestionBody").css("pointer-events","none");

Userlevel 7
Badge +21

You could look at disabling pointer-events.
JS:

this.getQuestionContainer().style.pointerEvents = "none"

Question HTML:

Replace *** with the question ID.
This will disable any kind of clicking on the question.

Leave a Reply