- Posts: 19
- Thank you received: 0
Ask the community, share ideas, and connect with other LimeSurvey users!
{SAVEDID}
You will need to wrap {SAVEDID} in quotes as it is not a JavaScript variable.Thank you, another quick question, under what scope do i have access to {SAVEDID} ? What i'm currently doing is making a custom theme where i added a <script> tag in the question page. When i try to for example console.log({SAVEDID}) it does not print the id, it prints {SAVEDID}.
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ console.log('{SAVEDID}'); }); </script>
<script type="text/javascript" charset="utf-8"> $(document).on('ready pjax:scriptcomplete',function(){ console.log('{{ processString('{SAVEDID}') }}'); }); </script>