- Posts: 24
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
The ExpressionScript/ExpressionManager functions are using PHP functions, but not exposing all functions of PHP.gorp wrote: However, I would now like to use random_int, but when I do that it says Undefined function even though the website is using PHP 7.0.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ $.post('https://www.myServer/getRandom.php' ,{ min: "[minValue]", max: "[maxValue]"} function(data) { $('#question{QID} input[type="text"]').val(data) }); // $('#question{QID}').hide(); }); </script>
No,jelo wrote: ....
If you want to use random_int, you would need to submit a feature request or modify the LimeSurvey code.