Submit a ticket Agent Login
Welcome
Login  Sign up

Set An Answer (Numeric Question)

To set the response inside a numeric question or response, you can use the code below.



Note: the answers start at index 0, so the first answer in your list will be 0, the second 1 etc.

Best practice is to take the code of the answer and subtract 1.


Be sure to add the next auto click.

(this example assumes you have 1 numeric box box on the page).


function pageReady(){    
    $(".numeric-decimal-input").val(5).trigger("input"); 
    //5 is the numeric value we are setting

    setTimeout(function() {             
        $('.main-next-button').click();     
    }, seconds * 100);
}

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.