ich habe ein Formular mit einer Pflichtfelderabfrage gemacht und beim 2. Formular funktioniert es auf einmal nicht

Code: Alles auswählen
<event activity="click" name="event__click">
<script contentType="application/x-javascript">
var Valid = true;
var Sammelmeldung = "";
if(txt_firstname.rawValue == null){
Valid = false;
Sammelmeldung = Sammelmeldung + "First Name" + "n";
}
if(Valid){
event.target.mailDoc({
bUI: false,
cTo: "access@ancotel.de",
cSubject: "ancotel: Permanent Access",
cMsg: "Write here you message."
});
}
else{
app.alert("The following fields are not filled.nn" + Sammelmeldung + "nPlease fill all fields bevor sending the e-mail.",1);
}
</script>
</event>
Seht Ihr meinen Fehler? Es sollen natürlich noch mehr Felder abgefragt werden, aber ich bin ja schon mal froh, wenn es mit einem Funktioniert
