When using the force function to require a response, how can I change the default error message? | XM Community
Skip to main content
Solved

When using the force function to require a response, how can I change the default error message?

  • November 27, 2019
  • 3 replies
  • 29 views

When using the force function to require a response, how can I change the default error message from "please answer the question" to a custom option (such as "please select a response for each option")?

Best answer by Igee

hi @stevecalla - Unfortunately, I do no believe you can change the default error message for the Force Response option, however, you can use a Custom Validation to have your conditions set and then use a custom error message.

3 replies

Igee
QPN Level 2 ●●
Forum|alt.badge.img+1
  • QPN Level 2 ●●
  • 26 replies
  • Answer
  • November 27, 2019
hi @stevecalla - Unfortunately, I do no believe you can change the default error message for the Force Response option, however, you can use a Custom Validation to have your conditions set and then use a custom error message.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • November 27, 2019
You can change default error messages dynamically with JS. Have the JS look to see if there is a visible error message, and if there is check its content. Then replace the content as appropriate.

  • Author
  • 1 reply
  • November 27, 2019
Hey Tom G - I understand exactly what you are saying but I'm not fluent in JS. Can you offer example code? Thanks, Steve @TomG