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.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
"name" is a reserved word, which is used to return the name of an object.
Use something like "firstName" and it should work okay.
Hope that helps,
Niall
Views
Replies
Total Likes
Hi,
"name" is a reserved word, which is used to return the name of an object.
Use something like "firstName" and it should work okay.
Hope that helps,
Niall
Views
Replies
Total Likes
yes!!! It's working now. Thanks!!
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies