I'm trying to get a value in a dropdown to not show if another value is selected. Basically saying if Internal is showing, don't show Record_type_wf or record_type_vr But when adding in the or statement for VR it just breaks and they both always show up.
if((zoneLocation == 'internal' && optionObj[option].value != 'record_type_wf' || 'vanity_type_vr') || zoneLocation != 'internal'){
g_form.addOption('dns_record_type', optionObj[option].value, optionObj[option].text, optionObj[option].order);
if (optionObj[option].value == currentRecordType){
keepCurrentOption = true;
}
}