- Posts: 9
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Limit on lines of code for questions
- bpresentati
- Topic Author
- Offline
- New Member
Less
More
2 years 6 months ago #221137
by bpresentati
Limit on lines of code for questions was created by bpresentati
Hello,
I'm using a relatively complicated html/javascript code in some of my questions, and it appears that there is a limit on the number of lines of code that are possible. Is there any way to increase this limit?
I'm using a relatively complicated html/javascript code in some of my questions, and it appears that there is a limit on the number of lines of code that are possible. Is there any way to increase this limit?
The topic has been locked.
- Joffm
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 12916
- Thank you received: 3975
2 years 6 months ago #221138
by Joffm
Volunteers are not paid.
Not because they are worthless, but because they are priceless
Replied by Joffm on topic Limit on lines of code for questions
In the database this field is of type "text".
And this, too
But consider: Unicode characters may use more than one byte.The maximum amount of data that can be stored for each data type is approximately:
TEXT 65,535 bytes ~64kb
And this, too
The maximum size of a
orCode:BLOBobject is determined by its type, but the largest value you actually can transmit between the client and server is determined by the amount of available memory and the size of the communications buffers. You can change the message buffer size by changing the value of theCode:TEXTvariable, but you must do so for both the server and your client program.Code:max_allowed_packet
Volunteers are not paid.
Not because they are worthless, but because they are priceless
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- tpartner
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 10108
- Thank you received: 3593
2 years 6 months ago - 2 years 6 months ago #221142
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 Limit on lines of code for questions
Place the code in a function in your custom.js file and call it from the question.
Cheers,
Tony Partner
Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
Last edit: 2 years 6 months ago by tpartner.
The topic has been locked.
- bpresentati
- Topic Author
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
2 years 6 months ago #221143
by bpresentati
Replied by bpresentati on topic Limit on lines of code for questions
@Joffm: thank you. That's what I suspected/feared.
@tpartner: that's a great idea! I was thinking about doing something like that, but it's good to hear from the expert that it's possible.
@tpartner: that's a great idea! I was thinking about doing something like that, but it's good to hear from the expert that it's possible.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13637
- Thank you received: 2491
2 years 6 months ago - 2 years 6 months ago #221152
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Limit on lines of code for questions
Else : on mysql : you can set this column as LONGTEXT .
It's OK for PHP code, and you have a lot more space.
It's OK for PHP code, and you have a lot more space.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 2 years 6 months ago by DenisChenu.
The topic has been locked.