Validation Response Help | XM Community
Skip to main content
Solved

Validation Response Help

  • October 8, 2023
  • 1 reply
  • 49 views

Forum|alt.badge.img+5

Hello

I have some custom validation running that is working well, for example (yellow line).

 

But on my next question the validation message does not make sense. It should say something like – ‘Please select the type of feedback’.

 

How do I change the validation message just for this question. This will be the only change needed if that helps.

Thanks :)

Best answer by Shashi

Paste the below JS code under onReady function of the Question where we need custom message:

 

    jQuery("#"+this.questionId+" .ValidationError").html("Custom message");

 

1 reply

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • 654 replies
  • Answer
  • October 8, 2023

Paste the below JS code under onReady function of the Question where we need custom message:

 

    jQuery("#"+this.questionId+" .ValidationError").html("Custom message");