Expand my Community achievements bar.

Javascript to prop error message

Avatar

Level 3

Is there a way to write a Javascript statement to invoke a pop-up window when certain values are eneter in a form?

Specifically: Say you are entering a value for blood pressure and the number is above the avarage. So as you populate the numerical field and tab to the next field, a pop-up window comes up reminding you of the value you entered is above the normal range.

Thanks for the help

Shai

3 Replies

Avatar

Level 3

Thank Steve,

But the link only shows how a message box will appear and the paramaters

involved, i.e. title, message, icon, button. But how do you write a script that

will evaluate the value of a input on the form and only pop-up the message box,

when the value is exceeded?

Guess I am asking, if you enter a blodd pressure numerical value higher than

normal, then the box will appear. So In guess I am looking for the IF then Else

statement - right?

 

Cheers

Shai

Avatar

Former Community Member

The attached uses radio buttons and a message box to indicate high blood pressure. The systolic and diastolic numbers could entered in text or numeric fields as well.

Untitled.png

Steve