Skip to content

Reusing previous answer online #545

Closed Answered by rubenarslan
Venustiano asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, you can include any Javascript in the survey label, so just make the label of Toerbelsysvaat contain the below:

<script>
window.onload = function () {
    const dnumber = document.querySelector('[name="Toerbelsysvast"]');
    
    display = document.querySelector('#test_display_number');
    
    dnumber.addEventListener("change", (event) => {
        gnumber = event.target.value
        display.textContent = gnumber;
    })
};
</script>

Replies: 2 comments 6 replies

Comment options

You must be logged in to vote
5 replies
@Venustiano
Comment options

@Venustiano
Comment options

@rubenarslan
Comment options

@Venustiano
Comment options

@Venustiano
Comment options

Comment options

You must be logged in to vote
1 reply
@Venustiano
Comment options

Answer selected by Venustiano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants