Upload additional JavaScript file for global use

More
2 years 9 months ago #117872 by kmanapp
kmanapp created the topic: Upload additional JavaScript file for global use
Dear friends,

Reading the manual at the location below, it suggests "download the plugin latest JavaScript and save it as jquery.meiomask.js in the template folder", I found that LimeSurvey prohibits it and shows "This filename is not allowed to be uploaded"

Please advise on how can can I upload any JavaScript file via LimeSurvey front-end? Or, I have to go into back-end for uploading to relevant path?

manual.limesurvey.org/Workarounds:_Manip...ipt#Text_input_masks

Thanks in advance!

Please Log in to join the conversation.

More
2 years 9 months ago #117877 by holch
holch replied the topic: Upload additional JavaScript file for global use
What do you mean with Limesurvye Front-end and back-end? For me LS front-end would mean the surveys and backend would mean the administration. But uploading a Javascript in the frontend wouldn't make any sense...

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
2 years 9 months ago #117882 by tpartner
tpartner replied the topic: Upload additional JavaScript file for global use
Normally, I would FTP that file up to the template directory. If FTP is not available, you can simply add all of the contents of jquery.meiomask.js to the beginning of template.js.

Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.

Please Log in to join the conversation.

More
2 years 9 months ago #117885 by kmanapp
kmanapp replied the topic: Upload additional JavaScript file for global use
Well, thanks tpartner! That's a great work around the issue!

holch:

holch wrote: What do you mean with Limesurvye Front-end and back-end? For me LS front-end would mean the surveys and backend would mean the administration. But uploading a Javascript in the frontend wouldn't make any sense...


The "front-end" means via normal LimeSurvey web interface/screeen. The "back-end" means upload files via SFTP (for all operation system) or WinSCP (for Windows system) technology to the template folder ( e.g. for using LimeSurvey build-in template : "/path/to/limesurvey/templates" or for customized template: "/path/to/limesurvey/upload/template/" )

Please Log in to join the conversation.

Start now!

Just create your account and start using Limesurvey today.

Register now
Join our Newsletter!