- Posts: 55
- Thank you received: 1
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
issue with admin notifications - message too long?
- Siem
- Topic Author
- Offline
- Senior Member
Less
More
7 years 10 months ago #135825
by Siem
issue with admin notifications - message too long? was created by Siem
I have created a large survey. The results of each survey is mailed to the examiner.
The code to calculate all scores is in the admin notification. This code is quite long. The whole notification is about 500 lines of HTML and Expression Manager code.
It works, but it seems that the whole notification message is too long for LimeSurvey, after about 62.800 characters / 113 lines. The editor will just cut in the middle of a line and ignore the rest (the rest doesn't get saved). After the line that is cut in the middle it will create valid HTML.
So my code that's missing a lot of lines ends up looking like this on the last few lines:
Is this a bug in LimeSurvey and is there any way around this or to fix this?
Thanks!
The code to calculate all scores is in the admin notification. This code is quite long. The whole notification is about 500 lines of HTML and Expression Manager code.
It works, but it seems that the whole notification message is too long for LimeSurvey, after about 62.800 characters / 113 lines. The editor will just cut in the middle of a line and ignore the rest (the rest doesn't get saved). After the line that is cut in the middle it will create valid HTML.
So my code that's missing a lot of lines ends up looking like this on the last few lines:
Code:
<td>{if((countif('A1',Q155,Q160,Q165,Q170,Q175,Q180,Q185,Q190,Q195,Q200,Q205,Q210,Q215,Q220)+countif('A2',Q71,Q72,Q73,Q74,Q75,Q146,Q147,Q148,Q149,Q150,Q221,Q222,Q223,Q224)+1)==4,"0","")} {if((countif('A</td> </tr> </tbody> </table>
Is this a bug in LimeSurvey and is there any way around this or to fix this?
Thanks!
The topic has been locked.
- holch
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 11756
- Thank you received: 2753
7 years 10 months ago #135826
by holch
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
Replied by holch on topic issue with admin notifications - message too long?
Maybe not a solution for the exact problem, but why not do the calculations directly in Limesurvey and just send the result? At the end of the day you have the total calculation already in database saved, which is good should something go wrong with sending the emails, etc.
I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.
The following user(s) said Thank You: DenisChenu
The topic has been locked.
- Siem
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 1
7 years 10 months ago #135871
by Siem
I tried this with a hidden equation question, but the same problem occurs.
I think the code is too long for the editor to save (maybe the database field used is too small).
Replied by Siem on topic issue with admin notifications - message too long?
holch wrote: Maybe not a solution for the exact problem, but why not do the calculations directly in Limesurvey and just send the result? At the end of the day you have the total calculation already in database saved, which is good should something go wrong with sending the emails, etc.
I tried this with a hidden equation question, but the same problem occurs.
I think the code is too long for the editor to save (maybe the database field used is too small).
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
7 years 10 months ago #135876
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 issue with admin notifications - message too long?
Hi,
Did you try without HTML editor ?
Denis
Did you try without HTML editor ?
Denis
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.
The topic has been locked.
- Siem
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 1
7 years 10 months ago #135881
by Siem
Yes, I changed the "Use HTML format for token emails" to "No" and used the text-field to submit the my HTML / code.
After saving it is cut off at a certain point.
Replied by Siem on topic issue with admin notifications - message too long?
DenisChenu wrote: Hi,
Did you try without HTML editor ?
Denis
Yes, I changed the "Use HTML format for token emails" to "No" and used the text-field to submit the my HTML / code.
After saving it is cut off at a certain point.
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
7 years 10 months ago #135886
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 issue with admin notifications - message too long?
No, not the token email.
YOUR settings : manual.limesurvey.org/First_login_-_Your_user_preferences#Popup
YOUR settings : manual.limesurvey.org/First_login_-_Your_user_preferences#Popup
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.
The topic has been locked.
- Siem
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 55
- Thank you received: 1
7 years 10 months ago #135889
by Siem
Yes I tried it with these settings ("disabled the Filter HTML for XSS setting" and in "Source Code Mode").
Replied by Siem on topic issue with admin notifications - message too long?
DenisChenu wrote: No, not the token email.
YOUR settings : manual.limesurvey.org/First_login_-_Your_user_preferences#Popup
Yes I tried it with these settings ("disabled the Filter HTML for XSS setting" and in "Source Code Mode").
The topic has been locked.
- Mazi
- Offline
- Official LimeSurvey Partner
7 years 10 months ago #135907
by Mazi
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
Replied by Mazi on topic issue with admin notifications - message too long?
Can you always reproduce this issue?
If so, please file a bug report at our bug tracker.
If so, please file a bug report at our bug tracker.
Best regards/Beste Grüße,
Dr. Marcel Minke
Need Help? We offer professional Limesurvey support: survey-consulting.com
Contact: marcel.minke(at)survey-consulting.com
The topic has been locked.
- tpartner
- Away
- LimeSurvey Community Team
Less
More
- Posts: 10630
- Thank you received: 3696
7 years 10 months ago #135917
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 issue with admin notifications - message too long?
I think Denis means to try disabling the editor entirely:Yes I tried it with these settings ("disabled the Filter HTML for XSS setting" and in "Source Code Mode").
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.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13935
- Thank you received: 2551
7 years 10 months ago #135923
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 issue with admin notifications - message too long?
Or Popup (direct link provided : we must update manual )
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.
The topic has been locked.
- tammo
- Offline
- Official LimeSurvey Partner
Less
More
- Posts: 963
- Thank you received: 217
7 years 6 months ago #141420
by tammo
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
Replied by tammo on topic issue with admin notifications - message too long?
Would it be possible to disable CKEditor & HTML completely, but for email only? In question text I do still want HTML...
Tammo ter Hark at Respondage
For Limesurvey reporting, education and customized themes
respondage.nl
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5070
- Thank you received: 1263
7 years 6 months ago #141427
by jelo
But is there a bugreport? The threads is months old. Did you run into an issue Tammo?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic issue with admin notifications - message too long?
I think a tab with html/plain which switches between the Editor and a simple form would work.tammo wrote: Would it be possible to disable CKEditor & HTML completely, but for email only?
But is there a bugreport? The threads is months old. Did you run into an issue Tammo?
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.