Prefill one field depending on 2 different drop downs
I'm trying to do a 'if this dropdown is xyz AND this other drop down is abc, then text needs to be .....
The variables are both drop downs. The below works ok until the bits in blue are added. Apologies if the below isn't pretty, but please could someone correct where I've gone wrong.
var OffCode = this.getField("O.aff_es_:prefill").value;
var InstChoice = this.getField("Installation choice_es_:prefill").value
if (OffCode=="...") event.value = " ";
else if (OffCode=="FSPE") event.value = "Je ne souhaite ........";
else if (OffCode=="FSFI") event.value = "Je ne souhaite ........";
else if (OffCode=="FSPB") event.value = "Je ne souhaite .........";
else if (OffCode=="FSPB") event.value &&(InstChoice=="Pas d’équipement(s) à installer") event.value = "Je ne souhaite ........";
else event.value = " ";