PDF and JavaScript IF OR
Hi, I'm doing conditions between two fields. after adding the last "else if" I can no longer do it makes me an error "SyntaxError: unterminated string literal".
if I stop me "status ==" OG - Worker "and I finish to calculate the value he accepts, but if one puts OR or an additional IF he made the mistake.
is what I am limited? anyone know the problem there? thank you
var societe = this.getField("societe").value;
var point = this.getField("NombreDePoints").value;
var statut = this.getField("statutSalarie").value
if((societe == "societe1" || societe == "societe2" ) && (statut == "OG - Ouvrier" || statut == "EH - Employés" || statut == "AE - Agent de maitrise GF" || statut == "AF - Agents de maitrise" || statut == "AD - Agent maitr art 36" || statut == "AC – Agent maitr art 4bis" || statut == "MD - Détaché" || statut == "TC - Technicien" || statut == "CB - Cadre intégré"))event.value = point * 12.0117;
else if((societe == "societe3" || societe == "societe4" || societe == "societe5" || societe == "societe6" || societe == "societe7" ) && (statut == "OG - Ouvrier" || statut == "EH - Employés" || statut == "AE - Agent de maitrise GF" || statut == "AF - Agents de maitrise" || statut == "AD - Agent maitr art 36" || statut == "AC – Agent maitr art 4bis" || statut == "MD - Détaché" || statut == "TC - Technicien" || statut == "CB - Cadre intégré"))event.value = point * 12.0845;
else if((societe == "societe8" || societe == "societe9" ) && (statut == "OG - Ouvrier" || statut == "EH - Employés" || statut == "AE - Agent de maitrise GF" || statut == "AF - Agents de maitrise" || statut == "AD - Agent maitr art 36" || statut == "AC – Agent maitr art 4bis" || statut == "MD - Détaché" || statut == "TC - Technicien" || statut == "CB - Cadre intégré"))event.value = point * 4.8688;
else if(societe == "societe10" && (statut == "OG - Ouvrier" || statut == "EH - Employés" || statut == "AE - Agent de maitrise GF" || statut == "AF - Agents de maitrise" || statut == "AD - Agent maitr art 36" || statut == "AC – Agent maitr art 4bis" || statut == "MD - Détaché" || statut == "TC - Technicien" || statut == "CB - Cadre intégré"))event.value = point * 11.9519;
else if(societe == "societe11" && (statut == "OG - Ouvrier" || statut == "EH - Employés"
