- Posts: 62
- Thank you received: 3
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Export Survey and include javascript question customization
- Maverick87Shaka
- Topic Author
- Offline
- Senior Member
Less
More
7 years 10 months ago #138924
by Maverick87Shaka
Export Survey and include javascript question customization was created by Maverick87Shaka
Hi to all,
I've finally completed my entire survey with a lot of javascript customization.
I need to re-use this "Survey Style" many time, and could be more than one active at the same time.
I'll try to export the .lss and create the new survey using import function, but the new survey generated by import doesn't contain javascript inside question, any idea how to export/import all the structure including custom javascript?
Thanks
I've finally completed my entire survey with a lot of javascript customization.
I need to re-use this "Survey Style" many time, and could be more than one active at the same time.
I'll try to export the .lss and create the new survey using import function, but the new survey generated by import doesn't contain javascript inside question, any idea how to export/import all the structure including custom javascript?
Thanks
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
7 years 10 months ago #138928
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Export Survey and include javascript question customization
The .lss file should contain all JavaScript that's placed in the group description or question text.
What LimeSurvey version are you using?
Try opening the .lss file with a plain-text editor and searching for the JS (that will tell you if it's an export or import problem).
What LimeSurvey version are you using?
Try opening the .lss file with a plain-text editor and searching for the JS (that will tell you if it's an export or import problem).
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
- Maverick87Shaka
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 3
7 years 10 months ago - 7 years 10 months ago #138941
by Maverick87Shaka
The problem seems occur only with "restricted" user account. The users that need to import the survey structure has the privilege reported in the screenshot.
Version is 2.50+ Build 160529
Replied by Maverick87Shaka on topic Export Survey and include javascript question customization
I've opened the .lss and its contain the javascript code. Also I try to import the file with my user ( SuperAdmin account ) and it's works great, importing in the new survey the javascript code too.tpartner wrote: The .lss file should contain all JavaScript that's placed in the group description or question text.
What LimeSurvey version are you using?
Try opening the .lss file with a plain-text editor and searching for the JS (that will tell you if it's an export or import problem).
The problem seems occur only with "restricted" user account. The users that need to import the survey structure has the privilege reported in the screenshot.
Version is 2.50+ Build 160529
Last edit: 7 years 10 months ago by Maverick87Shaka.
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10116
- Thank you received: 3597
7 years 10 months ago #138942
by tpartner
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Replied by tpartner on topic Export Survey and include javascript question customization
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Attachments:
The topic has been locked.
- Maverick87Shaka
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 62
- Thank you received: 3
7 years 9 months ago #139007
by Maverick87Shaka
Replied by Maverick87Shaka on topic Export Survey and include javascript question customization
Yes, it's the XSS filter option under security tab that prevent all other user to import javascript by file.
Turning this option Off like in your screen resolve the problem. ( Default installation is On )
Thanks
Turning this option Off like in your screen resolve the problem. ( Default installation is On )
Thanks
The topic has been locked.