Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Search Results (Searched for: html)

  • DenisChenu
  • DenisChenu's Avatar
21 Jun 2024 11:45 - 21 Jun 2024 11:47
  • brettvonholdt
  • brettvonholdt's Avatar
21 Jun 2024 10:05
Please help us help you and fill where relevant:
Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen]
Own server or LimeSurvey hosting:
Survey theme/template:
==================
(Write here your question/remark)Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.13+240617 
Own server or LimeSurvey hosting: Own server
Survey theme/template: Bootswatch
==================
Hi everyone,

Seems i have some issue with getting the graphs to output when exporting a PDF from the statistics.
I can see the graphs in the HTML view, and i can export them as a zip from the bottom of the screen, but they do not appear in the PDF file.

Occassionally i can get a few graphs to generate, but not for all questions where a graph should generate.

I'm wondering whether this could be a server resource issue? Will giving more resources help?

Thanks
 
  • Joffm
  • Joffm's Avatar
20 Jun 2024 11:51
Hi,
what about using the API?
[url] manual.limesurvey.org/RemoteControl_2_API [/url]
with these methods
[url] api.limesurvey.org/classes/remotecontrol-handle.html [/url]

And you can define the columns you want to export (php example)
Code:
...
$surveyResponses = $myJSONRPCClient->export_responses(
    $sessionKey,
    $survey_id,
    'csv',            // Document type : pdf,csv,xls,doc,json
    NULL,         // Language code : null : default from survey
    'complete',  // Stautus complete|incomplete|all
    NULL,         // Heading : code|full|abbreviated : question text, default code
    NULL,        // answer : short|long , default : long
    1,               // From Response ID
    30000,       // To Response ID
    ['id','token','submitdate','lastpage','interviewtime','email','159677X490time','159677X487time','159677X490X9219SQ001','159677X490X9221SQ001']
);
...
 
  • DenisChenu
  • DenisChenu's Avatar
12 Jun 2024 18:45
I have a lot of system with bunch of question hidden :)

Less HTML produced => less code => more quik ;)
  • tpartner
  • tpartner's Avatar
12 Jun 2024 18:20

...or, CSS class d-none.

 
Here we don't need it for JS, then no need HTML produced :)
Understood but I generally use CSS as I manipulate so many questions.
  • DenisChenu
  • DenisChenu's Avatar
12 Jun 2024 17:19

...or, CSS class d-none.
 
Here we don't need it for JS, then no need HTML produced :)
  • DenisChenu
  • DenisChenu's Avatar
12 Jun 2024 08:37
Replied by DenisChenu on topic Can't access my JS code in question text
Did you try on Personal settings : HTML editor mode: to Popup ?
  • Joffm
  • Joffm's Avatar
06 Jun 2024 19:04
Puedes usar la API.
[url] manual.limesurvey.org/RemoteControl_2_API [/url]
[url] api.limesurvey.org/classes/remotecontrol-handle.html [/url]

Crea un script y ejecútalo todos los lunes con un "cronjob". 

Joffm
  • dedukt
  • dedukt's Avatar
05 Jun 2024 17:15
Registration Form was created by dedukt
Please help us help you and fill where relevant:
Your LimeSurvey version: 6.5.11
Own server or LimeSurvey hosting: Own Server
Survey theme/template: fruity_twentythree
==================
We have defined some extra attributes in CPDB as dropdown (e.g. "size_of_company" for better categorization of the results)
The attributes of participants of the survey are assigned.
In registration is only C.Html.textField and it don't seems to be possible to access to the defined dropdown-list?
 
  • Joffm
  • Joffm's Avatar
05 Jun 2024 16:13
Replied by Joffm on topic change question headers in the database

How do I connect to the database through the API?


[url] manual.limesurvey.org/RemoteControl_2_API [/url]
[url] api.limesurvey.org/classes/remotecontrol-handle.html [/url]

and regarding to PowerBi
[url] forums.limesurvey.org/forum/can-i-do-thi...-powerbi-integration [/url]

 
  • dqzhou
  • dqzhou's Avatar
04 Jun 2024 19:20
Hi Joffm,

I check with the Limesurvey, I notice my code is auto-changed to HTML. Even I do not select the box of 'Enable/Disable HTML Tag Autocomplete', it is also auto-picked. That's why you see my HTML structure.
  • Claesmen_515288
  • Claesmen_515288's Avatar
04 Jun 2024 15:42
Set the Participant Setting "Use HTML format for participant emails" to On, fixed the issue.
Not trying to find out how to change the default setting from Off to On
  • Joffm
  • Joffm's Avatar
04 Jun 2024 07:04 - 04 Jun 2024 11:04
Why don't you do what you are told?
You obviously still used the HTML editor.
You see the garbage in the result. Now nobody can see if you ordered the nested quotes correctly.

And did you read this?
[url] getbootstrap.com/docs/5.3/content/images/#responsive-images [/url]
There you see:
Images in Bootstrap are made responsive with .img-fluid. This applies max-width: 100%; and height: auto; to the image so that it scales with the parent width.

So it is not necessary that you set the max-width again to 100%.
You see that I set it to 25%, because yesterday you inserted four images.

I still do not see any issue with this
Code:
<span data-bs-content='<img src="https://www.myserver.de/img/myImage.jpg" class="img-fluid"  alt="">' data-bs-html="true" data-bs-placement="right" data-bs-toggle="popover" data-bs-trigger="hover focus">parcel size </span>
 
<script>
$(function () {
  $('[data-bs-toggle="popover"]').popover();
});
</script>
 
<style type="text/css">
.popover {
  max-width:300px;
}
</style>

 

And, as @tpartner: It's more bootstrap related.

Joffm

BTW: If you use bootstrap, you should use the "Color and background helpers"
[url] getbootstrap.com/docs/5.3/helpers/color-background/ [/url]
"text-success" instead of "good"
"text-danger" insted of "error"
...
  • Joffm
  • Joffm's Avatar
04 Jun 2024 06:38
Replied by Joffm on topic Problem parsing expression script.
You have nested quotes and you used the HTML editor. And that's the problem.

If you do it like this (as you did)
Code:
{if(is_empty(USER_EMAIL.NAOK),"<div class='error'>If you leave email empty, you don't get the report.</div>","")}
the HTML editor changes the single quotes into double quotes to
Code:
{if(is_empty(USER_EMAIL.NAOK),"<div class="error">If you leave email empty, you don't get the report.</div>","")}
Now you get the error.

So either you exchange the order of quotes to
Code:
{if(is_empty(USER_EMAIL.NAOK),'<div class="error">If you leave email empty, you don't get the report.</div>','')}

or - and that is my advice - you use the source code editor







Joffm
  • dqzhou
  • dqzhou's Avatar
03 Jun 2024 23:56
Hi Joffm,

Thank you very much! I adjust your code as follows.

But the new problem happens. As shown in attached picture, there is a long blank space in the explanation box. And I also do not see the relevant code to adjust the box length, and size of inserted pictures. 
 
<span data-bs-content="&lt;img data-cke-saved-src=&quot;/upload/surveys/411885/images/parcelsize_ENG.png&quot; src=&quot;/upload/surveys/411885/images/parcelsize_ENG.png&quot; class=&quot;img-fluid&quot;  alt=&quot;&quot;&gt;" data-bs-html="true" data-bs-placement="right" data-bs-toggle="popover" data-bs-trigger="click hover focus">parcel size </span> <script>
$(function () {
  $('[data-bs-toggle="popover"]').popover();
});
</script>
<style type="text/css">.popover {
  max-width:200px;
}
.img-fluid {
  max-width:100%;
}
</style>
 
Displaying 1 - 15 out of 4774 results.

Lime-years ahead

Online-surveys for every purse and purpose