Does Javascript Work inside Script Tags on Custom Messages? | XM Community
Solved

Does Javascript Work inside Script Tags on Custom Messages?

  • 7 August 2018
  • 2 replies
  • 9 views

I tried adding some javascript to a script tag in an end of survey message, but it does not seem to work. Is this possible?
icon

Best answer by Anonymous 7 August 2018, 04:32

View original

2 replies

Hello @willynils ,
Javascript does work on custom messages.
Please view the below images that I have implemented.
!

And below is the alert box in the preview mode.
!




It will be better if you upload your js code for better understanding of the problem.
Userlevel 7
Badge +33
Yes you can use the html tags in your custom error message like below:-

``<div style="text-align:right">This is a right aligned <b>message.</b></div>``

Leave a Reply