I have 5 dropdown boxes with a Passed or Failed value. If any of the dropdowns are changed to Failed I need a notes box to appear at the bottom.
I can make the notes appear using an onChange with if and else but when used on all five boxes it overrides as you go through the other dropdowns. Iβve battled to get to this point with the form using code but I canβt for the life of me figure out how to make this last bit work!
Any help would be massively appreciated 
$w . onReady ( function () {
$w ( β#dropdown1β ). onChange (() => {
if ( $w ( β#dropdown1β ). value === βFailedβ ){
$w ( β#failNotesβ ). expand ();
} else {
$w ( β#failNotesβ ). collapse ();
}
});
});
Iβve moved a little further with this now and have the following code:
$w . onReady ( function () {
$w ( β#fireGlassβ ). onChange ( ( event ) => {
checkResult ();
} );
$w ( β#iStripβ ). onChange ( ( event ) => {
checkResult ()
} );
$w ( β#doorCloseβ ). onChange ( ( event ) => {
checkResult ()
} );
$w ( β#fireDoorβ ). onChange ( ( event ) => {
checkResult ()
} );
$w ( β#doorDamageβ ). onChange ( ( event ) => {
checkResult ()
} );
});
function checkResult ( ) {
let input1 = $w ( β#fireGlassβ ). value ;
let input2 = $w ( β#iStripβ ). value ;
let input3 = $w ( β#doorCloseβ ). value ;
let input4 = $w ( β#fireDoorβ ). value ;
let input5 = $w ( β#doorDamageβ ). value ;
What I want to do now is check all five inputs match βPassedβ value but if any return βFailedβ then the Failure Notes text box expands.
Is this the right way to approach it and could someone point me in the right direction for comparing the values?
Thank you