Hi,
I have two fields on the form and tried to validate the name and line manager fields to make sure that user has entered both fields. Funny thing is that the name field(which is the first field) seems to be empty all the time even when I have entered a string into the input field, but the second field (the line manager field) is working fine. Does anyone know why?
Script:
var nameField = name.rawValue;
xfa.host.messageBox(nameField); //testing to see what user has entered --> it's always empty even if I've entered something
if(name.isNull){
errorMsg = "Please enter your name.\n";
}
if(lineManager.isNull){
errorMsg = errorMsg + "Please enter your line manager's name.\n";
}
Regards,
F.