Avatar

Level 2

I have a question.

Why does the else check for the alternative value of Agents?

The reason I ask is I have a similar problem with many alternatives in the dropdown.

In the case of "OTHER" being selected I need other fields to be visible.

In all other cases the fields in question should be invisible.

If the dropdown value is OTHER the fields 1a-4a should be invisible.

Why are we concerned with the value being something else?

I guess what I need is a statement that says if the value is not equal to "OTHER" then those fields are invisible.

I am trying this but I am not quite there:

In the change event of the 2nd dropdown.

if (BGR.rawValue == "OUT OF RANGE-DESCRIBE/COMMENT") {

    NOTEOOR.presence = "visible";

    RESULTS_OOR.presence = "visible";

    MU.presence = "visible";

    OOR_COMMENT.presence = "visible";

}

else if (BGR.rawValue <> "OUT OF RANGE-DESCRIBE/COMMENT") {

    NOTEOOR.presence = "hidden";

    RESULTS_OOR.presence = "hidden";

    MU.presence = "hidden";

    OOR_COMMENT.presence = "hidden";

}