- Posts: 3
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
You can send the report to any email, but currently there are no way to include the image link./source to the PDF.I've searched the forums for a solution to this but I haven't found one. There are a bunch of posts, but none seem to have a solution. I have installed the "pdfReport" plugin, but it does not seem to do what I want it to do. I believe it is for the person submitting the form to be able to print it for themselves.
Please Log in to join the conversation.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $.post('https://www.myServer/renameFile.php' , { sid: "{SID}", fname: "{eqFname}", ext: "{eqExt}" },function(data) { $('#question{QID} input[type="text"]').val(data) }); }); </script>
Please Log in to join the conversation.
Maybe you can do it too with some LibreOffice Calc calculation to transform the JSON data toIt is possible though I see it as a "l'art pour l'art" solution.
wget http://example.org/up)load/surveys/files/fu_jqsdbhqsdbhazbde -O file-{SRID}-{Original file name}.jpg
Please Log in to join the conversation.
I followed the link in the above reply, but the page only had five items on it with no details. Is there another page with additional details and/or instructions?You can send the report to any email, but currently there are no way to include the image link./source to the PDF.
I think we can add an Expression Manager function : imgSrc(Qcode[index=0]) in a new plugin.
Else a plugin can create any PDF file using any PHP script Export plugin : www.limesurvey.org/manual/Export_plugin_development#newExport but more time consuming.
My apologies. I didn't see this. I am on a dedicated server, so I have access to all files.Hi, unfortunately you did not answer the question at the beginning about your hosting.
I have a little experience with php and Java, but not much with AJAX. Exactly where should this code go?Now you may do an ajax-call to rename the files on the server.
Extract the filename and the extension by some stringfunctions (ExpressionScript) and run the ajax call in a question of type "short text" where you store the result of the call (the new name of the file)
Like this
My apologies, but this is a bit vague for me. My needs are pretty specific, to include the actual images in the output. What should go in this file?You see there is a php script called "renameFile.php" that you have to create (up to your needs)
Please Log in to join the conversation.