- Posts: 51
- Thank you received: 4
Ask the community, share ideas, and connect with other LimeSurvey users!
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.
<script type="text/javascript" data-author="Tony Partner"> $(document).on('ready pjax:scriptcomplete',function(){ // Identify this question var thisQuestion = $('#question{QID}'); // Add a listener for messages window.addEventListener("message", receiveMessage, false); // Function fired when a message is received function receiveMessage(event) { // Test for the expected message origin if (event.origin != 'https://pathToIframe') { return; } var messageData = event.data; // If the message data is JSON or an object, you may want to manipulate it here // Load the message data into the text input $('input:text.form-control:eq(0)', thisQuestion).val(messageData).trigger('keyup'); } }); </script>
Please Log in to join the conversation.
Please Log in to join the conversation.