Numeric Risposta numerica con un valore di tolleranza 1 0 True True 0 0 iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAABKElEQVQ4T43TsWqDUBjF8bxc+wCdOvUVbEDIkEFoBocMGZRLhYBk6ygZMjg4hIgBqUQwEFpBsBndxenUE9qQ8IVLhj9c8ecRBwcATi0WC9WHO1P/z50HfN9H13Vo21YbDa0YmM/naJoGrx8/2mhoxYDneTgej3h5/9JGQysGlFKo6xqPb9lFn1fXD300tGLAcRxUVYWiKLTR0IqB2WyGsiyx2+200dCKgel0isPhANd1MRwOkabp1fn7+ekUDa0YsG0b+/0eSZJoo6EVA5PJBHmen9+6Xq9vnmloxYBlWciyDFEUaaOhFQPj8fjqu8MwvHmmoRUDo9EI2+0Wq9VKGw2tGDBNE3Ecn9+0XC5vnmloxQBvbjYbBEGgjYZWDBiGofpwZ3+/Mwa/7Pv89PBcQwwAAAAASUVORK5CYII= function checkNumericAnswer%NUM%() { var answerField = document.getElementById("numeric_ans_%NUM%"); var answerValue = parseFloat(answerField.value); var min_value = (%ANSWER% - %TOLERANCE%); var max_value = (%ANSWER% + %TOLERANCE%); if ((answerValue >= min_value) && (answerValue <= max_value)) { document.domanda.custom_%NAME%_%NUM%.value = 1; } else { document.domanda.custom_%NAME%_%NUM%.value = 0; } } <INPUT type="text" ID="numeric_ans_%NUM%" value="0" onchange="checkNumericAnswer%NUM%()">