- Posts: 14385
- Thank you received: 2595
Ask the community, share ideas, and connect with other LimeSurvey users!
Yes,holch wrote: Ok, sorry, then I am out of ideas. Maybe Denis has one. Let's see tomorrow.
Ideally we would be able to do all this from within Expression Manager/Script. I have seen an interesting line in the release notes of 4.2.0. It reads like it is what I am describing, but not sure. Need to test it:+New feature #13175: Ability to show calculated values based on all users (Denis Chenu)
No, an ajax call writes the result into variables (e.g. a question of type "short text"). These you may access by EM.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $.post('https://www.myServer.de/getMyValue.php' , { sid: "{SID}", gid: "{GID}", qid: "{QID}" } ,function(data) { $('#question{QID} input[type="text"]').val(data); }); // Uncomment to hide the question // $('#question{QID}').hide(); }); </script>