Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable JavaScript alert in lime survey validation [duplicate]

While filling the questionnaire a JavaScript alert occurs when a mandatory question or validation error found. After alert a read message displayed which looks good but alert annoys. Is there any way to disable alert throughout the Survey?

In Lime survey it is different to place code for java script.

like image 444
Hafiz Avatar asked Dec 17 '15 07:12

Hafiz


1 Answers

Try this:

var newAlert = alert; // Preserving alert.

// Overriding the default alert.
alert = function(str){
    return;
}
like image 175
void Avatar answered Sep 26 '22 14:09

void