Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Limited Java Script in Question (Source)

Limited Java Script in Question (Source) 2 years 4 months ago #109017

  • profmey
  • profmey's Avatar
  • Offline
  • Fresh Lemon
  • Posts: 4
  • Karma: 0
Dear ALL,

I had some problem with my work, i need inserting 1000 more line java script to my question design. When i inserted the script, All script had shown. And i saved it and close. But when i open the question again, and click source button, there just 300 more line java script.

1. Is there limit in script we write at question source?
2. How do I resolve this problem?

Thanks guys,
Best Regards,


Hilman Fauzi
The administrator has disabled public write access.

Limited Java Script in Question (Source) 2 years 4 months ago #109023

  • Ben_V
  • Ben_V's Avatar
  • Offline
  • Platinum Lime
  • Posts: 1825
  • Thank you received: 449
  • Karma: 111
Hello
Put all your code in an external dedicated .js file...
Benoît

EM Variables => bit.ly/1TKQyNu | EM Roadmap => bit.ly/1UTrOB4
All LS releases => bit.ly/1VMuTDu | 2.06lts => bit.ly/1Qv44A1
Demo surveys => bit.ly/20NW9V8 (already included in /docs/demosurveys)
The administrator has disabled public write access.

Limited Java Script in Question (Source) 2 years 4 months ago #109024

  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • Moderator Lime
  • Posts: 9352
  • Thank you received: 1339
  • Karma: 386
Hi,

And the javascript must be reworked for LimeSurvey, we use { } for Expression Manager, then you need to add a space or a crlf with javascript bracket.

Denis
Assistance on LimeSurvey forum and LimeSurvey core developpement are on my free time (Say thanks ?).
A bug not reported is a bug not corrected. | Please, read the documentation | La doc en français à besoin de vous
The administrator has disabled public write access.
Time to create page: 0.214 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form