Enter a date won't allow Java Script? | XM Community
Skip to main content

Enter a date won't allow Java Script?

  • August 26, 2022
  • 1 reply
  • 35 views

Forum|alt.badge.img+3

Hello,
I have used JS found on here for several surveys to have a calendar to select a date. My colleague just built a new survey that we want to use a calendar for and every time I go to copy and paste the same JS, I get the following error message that it is not allowed, despite every setting looking the same as the original survey.

image.png
I tried searching the community for other alternatives and found many people referring to using the Library, but when I attempt to do that I get the below error message that the 'Question could not be inserted'
image.pngAny suggestions on how I can insert a calendar for picking the date? I don't know Java Script.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • August 26, 2022

Don't add the JavaScript to the question text. Instead to the left of the question under Question Behavior click JavaScript add add it there.