asked on March 6, 2015
Hello,
I am looking for a way to create a progress bar to show the 'Form Completion' progress that will show how far along the submitter is. I'm starting with a simple task to count the number of characters in a given field (formprogress) and the progress bar is displaying as 100% full. I've attached the code and a screenshot of my form as reference.
//Progress
$.getScript('http://L7711/Forms/js/jquery-ui.js', function () {
$("#q20").keyup(function() {
var len = $(this).val().length;
console.log(len);
var total = null;
total = len * 10;
barUpdate(total);
});
function barUpdate(total) {
$("#progressBar").progressbar({
value: total //Note: When I hard code a value (e.g. 25) in the 'value: total' area of the code, the progress bar displays correctly.
});
}
});
//End Progress Bar
Please let me know if you can see where I'm doing wrong.
Thanks,
Nate
0
0