Submit a ticket Agent Login
Welcome
Login  Sign up

Set An Answer (Open-text Response)


To set the response inside an open text 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 open text box on the page).


function pageReady(){    
    $(".open-end-input").val("Test").trigger("input");    
    $(".cCheck").eq(0).prop("checked",true).trigger("change");
    
    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.